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

@@ -72,7 +72,7 @@ pub unsafe extern "C" fn tc_server_new_local(
// - caller will not use server_dir after this call (convention)
let mut server_dir = unsafe { TCString::val_from_arg(server_dir) };
let server_config = ServerConfig::Local {
server_dir: server_dir.to_path_buf()?,
server_dir: server_dir.to_path_buf_mut()?,
};
let server = server_config.into_server()?;
// SAFETY: caller promises to free this server.