fix some clippy warnings, and make them errors for taskchampion-lib

This commit is contained in:
Dustin J. Mitchell
2022-03-07 23:49:37 +00:00
parent fcdcebb1e0
commit a5a8e3b7c8
7 changed files with 14 additions and 22 deletions

View File

@@ -292,7 +292,7 @@ impl<'a> RustString<'a> {
}
}
pub(crate) fn to_path_buf(&mut self) -> Result<PathBuf, std::str::Utf8Error> {
pub(crate) fn to_path_buf_mut(&mut self) -> Result<PathBuf, std::str::Utf8Error> {
#[cfg(unix)]
let path: OsString = {
// on UNIX, we can use the bytes directly, without requiring that they