mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
1 parent
9b658d86b2
commit
76509830e6
190 files changed
+3469
-930
No files matched your search
@@ -27,7 +27,10 @@ pub fn to_name(path: &OsStr) -> Result<String> {
|
||||
.expect("path file stem")
|
||||
.to_str()
|
||||
.expect("name string");
|
||||
let name = name.strip_prefix("lib").unwrap_or(name).to_owned();
|
||||
let name = name
|
||||
.strip_prefix("lib")
|
||||
.unwrap_or(name)
|
||||
.to_owned();
|
||||
|
||||
Ok(name)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user