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

@@ -149,7 +149,7 @@ pub unsafe extern "C" fn tc_replica_new_on_disk(
// - caller will not use path after this call (convention)
let mut path = unsafe { TCString::val_from_arg(path) };
let storage = StorageConfig::OnDisk {
taskdb_dir: path.to_path_buf()?,
taskdb_dir: path.to_path_buf_mut()?,
}
.into_storage()?;