Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 03269b4

Browse files
committed
Fix unnecessary_to_owned warnings
Signed-off-by: Joseph Livesey <joseph.livesey@btp.works>
1 parent 704e973 commit 03269b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

families/smallbank/smallbank_rust/src/handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl SmallbankTransactionHandler {
4545
SmallbankTransactionHandler {
4646
family_name: "smallbank".to_string(),
4747
family_versions: vec!["1.0".to_string()],
48-
namespaces: vec![get_smallbank_prefix().to_string()],
48+
namespaces: vec![get_smallbank_prefix()],
4949
}
5050
}
5151
}
@@ -310,5 +310,5 @@ fn get_smallbank_prefix() -> String {
310310
fn create_smallbank_address(payload: &str) -> String {
311311
let mut sha = Sha512::new();
312312
sha.input(payload.as_bytes());
313-
get_smallbank_prefix() + &sha.result_str()[..64].to_string()
313+
get_smallbank_prefix() + &sha.result_str()[..64]
314314
}

0 commit comments

Comments
 (0)