aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
-rw-r--r--src/makefile/functions.rs2
-rw-r--r--src/makefile/token.rs2
3 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 8f48a5b..116b349 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,7 +2,6 @@
unsafe_code,
unused_crate_dependencies,
variant_size_differences,
- clippy::pedantic,
clippy::cargo,
clippy::nursery,
clippy::missing_docs_in_private_items,
@@ -16,7 +15,6 @@
clippy::clone_on_ref_ptr,
clippy::todo
)]
-#![allow(clippy::non_ascii_literal)]
#![allow(clippy::missing_docs_in_private_items)]
use std::env::current_dir;
diff --git a/src/makefile/functions.rs b/src/makefile/functions.rs
index 8df1892..43ed44b 100644
--- a/src/makefile/functions.rs
+++ b/src/makefile/functions.rs
@@ -303,7 +303,7 @@ mod shell {
// TODO set .SHELLSTATUS
Ok(String::from_utf8(result.stdout)?
.replace("\r\n", "\n")
- .trim_end_matches("\n")
+ .trim_end_matches('\n')
.replace("\n", " "))
}
}
diff --git a/src/makefile/token.rs b/src/makefile/token.rs
index 5984901..18a1773 100644
--- a/src/makefile/token.rs
+++ b/src/makefile/token.rs
@@ -23,7 +23,7 @@ impl<'a, T: 'a + ParseError<&'a str> + ContextError<&'a str>> Err<'a> for T {}
pub struct TokenString(Vec<Token>);
impl TokenString {
- pub fn empty() -> Self {
+ pub const fn empty() -> Self {
Self(vec![])
}