mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
clippy nightly fixes
This commit is contained in:
parent
e5c62d01e1
commit
c6dec379f2
2 changed files with 4 additions and 4 deletions
|
|
@ -48,8 +48,8 @@ fn sort_file_list(files: &mut [TreeFile]) {
|
||||||
|
|
||||||
// applies topologically order on paths sorting
|
// applies topologically order on paths sorting
|
||||||
fn path_cmp(a: &Path, b: &Path) -> Ordering {
|
fn path_cmp(a: &Path, b: &Path) -> Ordering {
|
||||||
let mut comp_a = a.components().into_iter().peekable();
|
let mut comp_a = a.components().peekable();
|
||||||
let mut comp_b = b.components().into_iter().peekable();
|
let mut comp_b = b.components().peekable();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let a = comp_a.next();
|
let a = comp_a.next();
|
||||||
|
|
|
||||||
|
|
@ -128,9 +128,9 @@ impl Stashing {
|
||||||
Spans::from(vec![
|
Spans::from(vec![
|
||||||
bracket_open,
|
bracket_open,
|
||||||
if self.options.keep_index {
|
if self.options.keep_index {
|
||||||
option_on.clone()
|
option_on
|
||||||
} else {
|
} else {
|
||||||
option_off.clone()
|
option_off
|
||||||
},
|
},
|
||||||
bracket_close,
|
bracket_close,
|
||||||
Span::raw(Cow::from(" keep index")),
|
Span::raw(Cow::from(" keep index")),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue