On chain claim #114
on_pull_request_build_contracts.yml
on: pull_request
build
/
build
3m 14s
Annotations
33 warnings
[clippy] contracts/on-chain-claim/src/contract.rs#L111:
contracts/on-chain-claim/src/contract.rs#L111
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> contracts/on-chain-claim/src/contract.rs:111:27
|
111 | self.address_info(&address).set(address_info);
| ^^^^^^^^ help: change this to: `address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
[clippy] contracts/on-chain-claim/src/contract.rs#L111:
contracts/on-chain-claim/src/contract.rs#L111
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> contracts/on-chain-claim/src/contract.rs:111:27
|
111 | self.address_info(&address).set(address_info);
| ^^^^^^^^ help: change this to: `address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L95:
contracts/on-chain-claim/tests/tests.rs#L95
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:95:64
|
95 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:95:57
|
95 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L98:
contracts/on-chain-claim/tests/tests.rs#L98
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:98:13
|
98 | assert_eq!(address_info_mapper.is_empty(), true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
= note: `#[warn(clippy::bool_assert_comparison)]` on by default
help: replace it with `assert!(..)`
|
98 - assert_eq!(address_info_mapper.is_empty(), true);
98 + assert!(address_info_mapper.is_empty());
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L135:
contracts/on-chain-claim/tests/tests.rs#L135
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:135:64
|
135 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:135:57
|
135 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L138:
contracts/on-chain-claim/tests/tests.rs#L138
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:138:13
|
138 | assert_eq!(address_info_mapper.is_empty(), true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
138 - assert_eq!(address_info_mapper.is_empty(), true);
138 + assert!(address_info_mapper.is_empty());
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L145:
contracts/on-chain-claim/tests/tests.rs#L145
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:145:64
|
145 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:145:57
|
145 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L151:
contracts/on-chain-claim/tests/tests.rs#L151
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:151:64
|
151 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:151:57
|
151 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L198:
contracts/on-chain-claim/tests/tests.rs#L198
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:198:64
|
198 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:198:57
|
198 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L216:
contracts/on-chain-claim/tests/tests.rs#L216
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:216:64
|
216 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:216:57
|
216 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L234:
contracts/on-chain-claim/tests/tests.rs#L234
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:234:64
|
234 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:234:57
|
234 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L283:
contracts/on-chain-claim/tests/tests.rs#L283
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:283:64
|
283 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:283:57
|
283 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L286:
contracts/on-chain-claim/tests/tests.rs#L286
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:286:13
|
286 | assert_eq!(address_info_mapper.is_empty(), true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
286 - assert_eq!(address_info_mapper.is_empty(), true);
286 + assert!(address_info_mapper.is_empty());
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L304:
contracts/on-chain-claim/tests/tests.rs#L304
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:304:64
|
304 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:304:57
|
304 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L307:
contracts/on-chain-claim/tests/tests.rs#L307
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:307:13
|
307 | assert_eq!(address_info_mapper.is_empty(), true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
307 - assert_eq!(address_info_mapper.is_empty(), true);
307 + assert!(address_info_mapper.is_empty());
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L316:
contracts/on-chain-claim/tests/tests.rs#L316
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:316:64
|
316 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:316:57
|
316 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L343:
contracts/on-chain-claim/tests/tests.rs#L343
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:343:64
|
343 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:343:57
|
343 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L394:
contracts/on-chain-claim/tests/tests.rs#L394
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:394:64
|
394 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:394:57
|
394 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L469:
contracts/on-chain-claim/tests/tests.rs#L469
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:469:64
|
469 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:469:57
|
469 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L477:
contracts/on-chain-claim/tests/tests.rs#L477
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:477:64
|
477 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:477:57
|
477 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L479:
contracts/on-chain-claim/tests/tests.rs#L479
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:479:13
|
479 | assert_eq!(can_be_repaired, false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
479 - assert_eq!(can_be_repaired, false);
479 + assert!(!can_be_repaired);
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L487:
contracts/on-chain-claim/tests/tests.rs#L487
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:487:64
|
487 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:487:57
|
487 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L489:
contracts/on-chain-claim/tests/tests.rs#L489
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:489:13
|
489 | assert_eq!(can_be_repaired, false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
489 - assert_eq!(can_be_repaired, false);
489 + assert!(!can_be_repaired);
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L497:
contracts/on-chain-claim/tests/tests.rs#L497
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:497:64
|
497 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:497:57
|
497 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L499:
contracts/on-chain-claim/tests/tests.rs#L499
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:499:13
|
499 | assert_eq!(can_be_repaired, true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
499 - assert_eq!(can_be_repaired, true);
499 + assert!(can_be_repaired);
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L507:
contracts/on-chain-claim/tests/tests.rs#L507
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:507:64
|
507 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:507:57
|
507 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L509:
contracts/on-chain-claim/tests/tests.rs#L509
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:509:13
|
509 | assert_eq!(can_be_repaired, false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
509 - assert_eq!(can_be_repaired, false);
509 + assert!(!can_be_repaired);
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L532:
contracts/on-chain-claim/tests/tests.rs#L532
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:532:64
|
532 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:532:57
|
532 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L543:
contracts/on-chain-claim/tests/tests.rs#L543
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:543:64
|
543 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:543:57
|
543 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L549:
contracts/on-chain-claim/tests/tests.rs#L549
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:549:64
|
549 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:549:57
|
549 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L551:
contracts/on-chain-claim/tests/tests.rs#L551
warning: used `assert_eq!` with a literal bool
--> contracts/on-chain-claim/tests/tests.rs:551:13
|
551 | assert_eq!(can_be_repaired, true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
551 - assert_eq!(can_be_repaired, true);
551 + assert!(can_be_repaired);
|
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L555:
contracts/on-chain-claim/tests/tests.rs#L555
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:555:64
|
555 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:555:57
|
555 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
[clippy] contracts/on-chain-claim/tests/tests.rs#L573:
contracts/on-chain-claim/tests/tests.rs#L573
warning: redundant clone
--> contracts/on-chain-claim/tests/tests.rs:573:64
|
573 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> contracts/on-chain-claim/tests/tests.rs:573:57
|
573 | let managed_address = &ManagedAddress::from(address.clone());
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
build-output
Expired
|
2.75 MB |
|