Skip to content

Commit

Permalink
Address clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MightOfOaks committed Dec 12, 2023
1 parent 6cf0023 commit 469e76c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions contracts/minter/src/contract_updatable_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1538,9 +1538,9 @@ fn test_update_none_royalties() {

assert_eq!(
err.source().unwrap().to_string(),
sg721_updatable::ContractError::InvalidRoyalties(format!(
"Share percentage cannot be greater than 10%"
))
sg721_updatable::ContractError::InvalidRoyalties(
"Share percentage cannot be greater than 10%".to_string()
)
.to_string()
);

Expand All @@ -1561,9 +1561,9 @@ fn test_update_none_royalties() {

assert_eq!(
err.source().unwrap().to_string(),
sg721_updatable::ContractError::InvalidRoyalties(format!(
"Share increase cannot be greater than 2%"
))
sg721_updatable::ContractError::InvalidRoyalties(
"Share increase cannot be greater than 2%".to_string()
)
.to_string()
);

Expand Down Expand Up @@ -1623,9 +1623,9 @@ fn test_update_none_royalties() {

assert_eq!(
err.source().unwrap().to_string(),
sg721_updatable::ContractError::InvalidRoyalties(format!(
"Share increase cannot be greater than 2%"
))
sg721_updatable::ContractError::InvalidRoyalties(
"Share increase cannot be greater than 2%".to_string()
)
.to_string()
);

Expand Down Expand Up @@ -1748,9 +1748,9 @@ fn test_update_royalties() {

assert_eq!(
err.source().unwrap().to_string(),
sg721_updatable::ContractError::InvalidRoyalties(format!(
"Share percentage cannot be greater than 10%"
))
sg721_updatable::ContractError::InvalidRoyalties(
"Share percentage cannot be greater than 10%".to_string()
)
.to_string()
);

Expand Down Expand Up @@ -1969,7 +1969,7 @@ fn try_migrate() {

let res = router.migrate_contract(
creator,
Addr::unchecked(sg721_base_address.clone()),
Addr::unchecked(sg721_base_address),
&Empty {},
sg721_code_id,
);
Expand Down

0 comments on commit 469e76c

Please sign in to comment.