mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +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
|
||||
segment.seg.start = segment.seg.end;
|
||||
segment.seg.width = 0;
|
||||
segment.text = &"";
|
||||
segment.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -341,12 +341,10 @@ impl View for Menubar {
|
||||
.checked_sub(offset)
|
||||
.and_then(|pos| self.child_at(pos.x))
|
||||
{
|
||||
if self.root.children[child].is_leaf() {
|
||||
if self.focus == child {
|
||||
if btn == MouseButton::Left {
|
||||
return self.select_child(false);
|
||||
}
|
||||
}
|
||||
if self.focus == child && btn == MouseButton::Left
|
||||
&& self.root.children[child].is_leaf()
|
||||
{
|
||||
return self.select_child(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user