mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-22 11:03:25 +03:00
cleanup
This commit is contained in:
parent
f836d01492
commit
386a31067f
@ -5,13 +5,11 @@
|
||||
#![deny(unused_imports)]
|
||||
#![deny(unused_must_use)]
|
||||
#![deny(dead_code)]
|
||||
#![deny(clippy::all)]
|
||||
#![deny(clippy::all, clippy::perf, clippy::nursery, clippy::pedantic)]
|
||||
#![deny(clippy::filetype_is_file)]
|
||||
#![deny(clippy::cargo)]
|
||||
#![deny(clippy::pedantic)]
|
||||
#![deny(clippy::nursery)]
|
||||
#![deny(clippy::unwrap_used)]
|
||||
#![deny(clippy::panic)]
|
||||
#![deny(clippy::perf)]
|
||||
#![deny(clippy::match_like_matches_macro)]
|
||||
#![deny(clippy::needless_update)]
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
|
@ -342,7 +342,7 @@ fn new_file_content(path: &Path) -> Option<Vec<u8>> {
|
||||
path.to_str()?.to_string().as_bytes().into(),
|
||||
);
|
||||
}
|
||||
} else if meta.file_type().is_file() {
|
||||
} else if !meta.file_type().is_dir() {
|
||||
if let Ok(content) = fs::read(path) {
|
||||
return Some(content);
|
||||
}
|
||||
|
@ -2,11 +2,9 @@
|
||||
#![deny(unused_imports)]
|
||||
#![deny(unused_must_use)]
|
||||
#![deny(dead_code)]
|
||||
#![deny(clippy::all)]
|
||||
#![deny(clippy::all, clippy::perf, clippy::nursery, clippy::pedantic)]
|
||||
#![deny(clippy::filetype_is_file)]
|
||||
#![deny(clippy::cargo)]
|
||||
#![deny(clippy::pedantic)]
|
||||
#![deny(clippy::perf)]
|
||||
#![deny(clippy::nursery)]
|
||||
#![deny(clippy::unwrap_used)]
|
||||
#![deny(clippy::panic)]
|
||||
#![deny(clippy::match_like_matches_macro)]
|
||||
|
Loading…
Reference in New Issue
Block a user