mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-01 02:08:31 +03:00
clippy fix, tyring to debug cli upadte on osx
This commit is contained in:
parent
8ca3ab465e
commit
f65fff602f
@ -20,7 +20,6 @@
|
||||
|
||||
#![allow(clippy::module_inception)]
|
||||
#![allow(clippy::upper_case_acronyms)]
|
||||
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
pub mod compiler;
|
||||
|
@ -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 {
|
||||
|
@ -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)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user