clippy fix, tyring to debug cli upadte on osx

This commit is contained in:
gluaxspeed 2021-08-13 11:35:48 -07:00
parent 8ca3ab465e
commit f65fff602f
3 changed files with 9 additions and 2 deletions

View File

@ -20,7 +20,6 @@
#![allow(clippy::module_inception)]
#![allow(clippy::upper_case_acronyms)]
#![doc = include_str!("../README.md")]
pub mod compiler;

View File

@ -364,6 +364,14 @@ create_errors!(
help: None,
}
/// For when the CLI fails to self update.
@backtraced
self_update_build_error {
args: (error: impl ErrorArg),
msg: format!("self update crate failed to build Error: {}", error),
help: None,
}
/// For when the CLI has an old release version.
@backtraced
old_release_version {

View File

@ -60,7 +60,7 @@ impl Updater {
.no_confirm(true)
.show_output(show_output)
.build()
.map_err(CliError::self_update_error)?
.map_err(CliError::self_update_build_error)?
.update()
.map_err(CliError::self_update_error)?;