mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 19:26:09 +00:00
Fix some clippy warnings
This commit is contained in:
parent
f8588e74c1
commit
4383526ec0
@ -31,7 +31,7 @@ impl<'a> Chunk<'a> {
|
|||||||
// Empty this segment
|
// Empty this segment
|
||||||
segment.seg.start = segment.seg.end;
|
segment.seg.start = segment.seg.end;
|
||||||
segment.seg.width = 0;
|
segment.seg.width = 0;
|
||||||
segment.text = &"";
|
segment.text = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -341,12 +341,10 @@ impl View for Menubar {
|
|||||||
.checked_sub(offset)
|
.checked_sub(offset)
|
||||||
.and_then(|pos| self.child_at(pos.x))
|
.and_then(|pos| self.child_at(pos.x))
|
||||||
{
|
{
|
||||||
if self.root.children[child].is_leaf() {
|
if self.focus == child && btn == MouseButton::Left
|
||||||
if self.focus == child {
|
&& self.root.children[child].is_leaf()
|
||||||
if btn == MouseButton::Left {
|
{
|
||||||
return self.select_child(false);
|
return self.select_child(false);
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user