diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2024-03-10 16:20:50 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2024-03-10 16:21:29 -0400 |
commit | 4267cb55085b24770ee35c841c940f8ea7233445 (patch) | |
tree | bf116131238345c1785e2a7eb8d37095adea6b20 | |
parent | 18221047b833d3c2ede82f2959fc8a4c39da5591 (diff) |
cargo clippy
-rw-r--r-- | src/ui/widgets/tui_dirlist_detailed.rs | 1 | ||||
-rw-r--r-- | src/util/style.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/widgets/tui_dirlist_detailed.rs b/src/ui/widgets/tui_dirlist_detailed.rs index e84cbbb..b35dcea 100644 --- a/src/ui/widgets/tui_dirlist_detailed.rs +++ b/src/ui/widgets/tui_dirlist_detailed.rs @@ -128,6 +128,7 @@ fn get_entry_size_string(entry: &JoshutoDirEntry) -> String { } } +#[allow(clippy::too_many_arguments)] fn print_entry( buf: &mut Buffer, entry: &JoshutoDirEntry, diff --git a/src/util/style.rs b/src/util/style.rs index 4c3fcc2..0373c0c 100644 --- a/src/util/style.rs +++ b/src/util/style.rs @@ -60,7 +60,7 @@ pub fn entry_prefix(entry: &JoshutoDirEntry) -> (&str, usize) { THEME_T.selection.prefix_width, ); } - return ("", 0); + ("", 0) } fn default_style(entry: &JoshutoDirEntry, linktype: &LinkType, filetype: &FileType) -> Style { |