mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ignore strip_suffix until minimum rust version is 1.45
This commit is contained in:
parent
d219b6e705
commit
07e9c5896c
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ fn basename(fullname: &str, suffix: &str) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::manual_strip)] // can be replaced with strip_suffix once the minimum rust version is 1.45
|
||||
fn strip_suffix(name: &str, suffix: &str) -> String {
|
||||
if name == suffix {
|
||||
return name.to_owned();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue