mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix clippy warnings
This commit is contained in:
parent
8e252e176b
commit
dd141dd810
@ -618,7 +618,7 @@ impl Core {
|
||||
XY::zip4(Orientation::pair(), position, lengths, offsets)
|
||||
.keep(grabbed.and(self.enabled))
|
||||
.into_iter()
|
||||
.filter_map(|x| x)
|
||||
.flatten()
|
||||
.next()
|
||||
{
|
||||
if pos >= offset && pos < offset + length {
|
||||
|
@ -3,6 +3,7 @@ use std::iter;
|
||||
|
||||
/// A generic structure with a value for each axis.
|
||||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
#[allow(clippy::upper_case_acronyms)]
|
||||
pub struct XY<T> {
|
||||
/// X-axis value
|
||||
pub x: T,
|
||||
|
Loading…
Reference in New Issue
Block a user