mirror of
https://github.com/esp-rs/espup.git
synced 2026-05-01 23:34:27 +00:00
fix: 🐛 Fix clippy warnings
This commit is contained in:
@@ -55,7 +55,7 @@ impl Config {
|
||||
let wrong_file = PathBuf::from("adadad");
|
||||
let serialized = toml::to_string(&self.clone()).map_err(|_| Error::FailedToSerialize)?;
|
||||
create_dir_all(file.parent().unwrap()).map_err(|_| Error::FailedToCreateConfigFile)?;
|
||||
write(&wrong_file, serialized)
|
||||
write(wrong_file, serialized)
|
||||
.map_err(|_| Error::FailedToWrite(file.display().to_string()))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ fn uninstall(args: UninstallOpts) -> Result<()> {
|
||||
repo_url: Some(DEFAULT_GIT_REPOSITORY.to_string()),
|
||||
};
|
||||
|
||||
remove_dir_all(&(get_install_path(repo.clone()).parent().unwrap())).map_err(|_| {
|
||||
remove_dir_all(get_install_path(repo.clone()).parent().unwrap()).map_err(|_| {
|
||||
Error::FailedToRemoveDirectory(
|
||||
get_install_path(repo)
|
||||
.parent()
|
||||
|
||||
Reference in New Issue
Block a user