mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
clippy nightly fixes
This commit is contained in:
parent
b622ceef94
commit
f2b09d39c6
7 changed files with 14 additions and 11 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -63,7 +63,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "asyncgit"
|
||||
version = "0.20.1"
|
||||
version = "0.21.0"
|
||||
dependencies = [
|
||||
"crossbeam-channel",
|
||||
"easy-cast",
|
||||
|
|
@ -385,7 +385,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "filetreelist"
|
||||
version = "0.4.0"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"pretty_assertions",
|
||||
"scopetime",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ keywords = [
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
asyncgit = { path = "./asyncgit", version = "0.20", default-features = false }
|
||||
asyncgit = { path = "./asyncgit", version = "0.21", default-features = false }
|
||||
backtrace = "0.3"
|
||||
bitflags = "1.3"
|
||||
bugreport = "0.4"
|
||||
|
|
@ -32,7 +32,7 @@ crossbeam-channel = "0.5"
|
|||
crossterm = { version = "0.20", features = [ "serde" ] }
|
||||
dirs-next = "2.0"
|
||||
easy-cast = "0.4"
|
||||
filetreelist = { path = "./filetreelist", version = "0.4" }
|
||||
filetreelist = { path = "./filetreelist", version = "0.5" }
|
||||
fuzzy-matcher = "0.3"
|
||||
gh-emoji = { version = "1.0", optional = true }
|
||||
itertools = "0.10"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "asyncgit"
|
||||
version = "0.20.1"
|
||||
version = "0.21.0"
|
||||
authors = ["Stephan Dilly <dilly.stephan@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "allow using git2 in a asynchronous context"
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ pub fn tree_files(
|
|||
Ok(files)
|
||||
}
|
||||
|
||||
fn sort_file_list(files: &mut Vec<TreeFile>) {
|
||||
fn sort_file_list(files: &mut [TreeFile]) {
|
||||
files.sort_by(|a, b| path_cmp(&a.path, &b.path));
|
||||
}
|
||||
|
||||
|
|
@ -163,7 +163,7 @@ mod tests {
|
|||
filemode: 0,
|
||||
id: Oid::zero(),
|
||||
})
|
||||
.collect();
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
sort_file_list(&mut list);
|
||||
|
||||
|
|
@ -188,7 +188,7 @@ mod tests {
|
|||
filemode: 0,
|
||||
id: Oid::zero(),
|
||||
})
|
||||
.collect();
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
sort_file_list(&mut list);
|
||||
|
||||
|
|
@ -212,7 +212,7 @@ mod tests {
|
|||
filemode: 0,
|
||||
id: Oid::zero(),
|
||||
})
|
||||
.collect();
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
sort_file_list(&mut list);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "filetreelist"
|
||||
version = "0.4.0"
|
||||
version = "0.5.0"
|
||||
authors = ["Stephan Dilly <dilly.stephan@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "filetree abstraction based on a sorted path list, supports key based navigation events, folding, scrolling and more"
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ impl FileTreeItems {
|
|||
}
|
||||
|
||||
fn unindent(
|
||||
items: &mut Vec<FileTreeItem>,
|
||||
items: &mut [FileTreeItem],
|
||||
prefix: &str,
|
||||
start: usize,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -245,6 +245,9 @@ impl From<bool> for EventState {
|
|||
/// base component trait
|
||||
pub trait Component {
|
||||
///
|
||||
//TODO: remove once workaround for clippy bug:
|
||||
//<https://github.com/rust-lang/rust-clippy/issues/8366>
|
||||
#[allow(clippy::ptr_arg)]
|
||||
fn commands(
|
||||
&self,
|
||||
out: &mut Vec<CommandInfo>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue