fix clippy
This commit is contained in:
@@ -95,7 +95,7 @@ fn main() -> XResult<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn print_version(options: &Options) {
|
fn print_version(options: &Options) {
|
||||||
print!(r#"digest {} - {}
|
println!(r#"digest {} - {}
|
||||||
Copyright (C) 2019 Hatter Jiang.
|
Copyright (C) 2019 Hatter Jiang.
|
||||||
License MIT <https://opensource.org/licenses/MIT>
|
License MIT <https://opensource.org/licenses/MIT>
|
||||||
|
|
||||||
@@ -105,8 +105,7 @@ Supported algorithms:
|
|||||||
MD5, SHA1, SHA224, SHA256, SHA512, SHA512-224, SHA512-256,
|
MD5, SHA1, SHA224, SHA256, SHA512, SHA512-224, SHA512-256,
|
||||||
SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE-128, SHAKE-256,
|
SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE-128, SHAKE-256,
|
||||||
KECCAK-224, KECCAK-256, KECCAK-384, KECCAK-512,
|
KECCAK-224, KECCAK-256, KECCAK-384, KECCAK-512,
|
||||||
SM3, RIPEMD160, WHIRLPOOL, BLAKE2S, BLAKE2B
|
SM3, RIPEMD160, WHIRLPOOL, BLAKE2S, BLAKE2B"#, VERSION, &GIT_HASH[0..7]);
|
||||||
"#, VERSION, &GIT_HASH[0..7]);
|
|
||||||
if options.verbose {
|
if options.verbose {
|
||||||
print_message(MessageType::DEBUG, &format!("Full git hash: {}", &GIT_HASH));
|
print_message(MessageType::DEBUG, &format!("Full git hash: {}", &GIT_HASH));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user