refactor: update function parameters to use references where appropriate

This commit is contained in:
Andrew Phillips
2025-05-14 22:09:23 -03:00
committed by Andrew Phillips (aider)
parent d1edd20845
commit dd8f828ed3
10 changed files with 21 additions and 21 deletions

View File

@@ -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