refactor: update function parameters to use references where appropriate
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
d1edd20845
commit
dd8f828ed3
@@ -123,7 +123,7 @@ pub fn store_item_digest_value(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn cmd_args_digest_type(cmd: &mut Command, args: Args) -> DigestType {
|
||||
pub fn cmd_args_digest_type(cmd: &mut Command, args: &Args) -> DigestType {
|
||||
let digest_name = args
|
||||
.item
|
||||
.digest
|
||||
@@ -142,7 +142,7 @@ pub fn cmd_args_digest_type(cmd: &mut Command, args: Args) -> DigestType {
|
||||
digest_type_opt.unwrap()
|
||||
}
|
||||
|
||||
pub fn cmd_args_compression_type(cmd: &mut Command, args: Args) -> CompressionType {
|
||||
pub fn cmd_args_compression_type(cmd: &mut Command, args: &Args) -> CompressionType {
|
||||
let compression_name = args
|
||||
.item
|
||||
.compression
|
||||
|
||||
Reference in New Issue
Block a user