From 067e0c9d07ccb2a3b3bba8586759e33f0f58e42d Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 2 Apr 2021 22:30:42 -0600 Subject: appease the mighty paperclip --- src/makefile/functions.rs | 2 +- src/makefile/token.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/makefile') 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); impl TokenString { - pub fn empty() -> Self { + pub const fn empty() -> Self { Self(vec![]) } -- cgit v1.2.3