Repo reorg phase-2 #1
Annotations
43 warnings
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L320
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:320:28
|
320 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L310
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:310:22
|
310 | let sk = XPrv::from_str(&sk_str).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L307
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:307:28
|
307 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L298
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:298:26
|
298 | let setoff = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L296
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:296:30
|
296 | let ciphertext = hex::decode(setoff).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L276
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:276:17
|
276 | d.try_into().unwrap()
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L255
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:255:25
|
255 | let o = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L252
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:252:30
|
252 | let ciphertext = hex::decode(obligation).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> utils/mtcs-intent/src/main.rs:6:5
|
6 | clippy::unwrap_used,
| ^^^^^^^^^^^^^^^^^^^
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L320
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:320:28
|
320 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L310
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:310:22
|
310 | let sk = XPrv::from_str(&sk_str).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L307
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:307:28
|
307 | println!("{}", AccountId::new("wasm", tm_pk.as_bytes()).unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L298
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:298:26
|
298 | let setoff = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L296
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:296:30
|
296 | let ciphertext = hex::decode(setoff).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L276
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:276:17
|
276 | d.try_into().unwrap()
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L255
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:255:25
|
255 | let o = decrypt(&sk.to_bytes(), &ciphertext).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
utils/mtcs-intent/src/main.rs#L252
warning: used `unwrap()` on a `Result` value
--> utils/mtcs-intent/src/main.rs:252:30
|
252 | let ciphertext = hex::decode(obligation).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> utils/mtcs-intent/src/main.rs:6:5
|
6 | clippy::unwrap_used,
| ^^^^^^^^^^^^^^^^^^^
|
you are explicitly cloning with `.map()`:
utils/cycles-sync/src/main.rs#L93
warning: you are explicitly cloning with `.map()`
--> utils/cycles-sync/src/main.rs:93:48
|
93 | let (debtor_id, creditor_id) = obligation_user_map
| ________________________________________________^
94 | | .get(obligation_digest)
95 | | .map(Clone::clone)
| |______________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `#[warn(clippy::map_clone)]` on by default
help: consider calling the dedicated `copied` method
|
93 ~ let (debtor_id, creditor_id) = obligation_user_map
94 + .get(obligation_digest).copied()
|
|
the borrowed expression implements the required traits:
utils/cycles-sync/src/main.rs#L328
warning: the borrowed expression implements the required traits
--> utils/cycles-sync/src/main.rs:328:41
|
328 | let mnemonic = Mnemonic::random(&mut OsRng, Default::default());
| ^^^^^^^^^^ help: change this to: `OsRng`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
you are explicitly cloning with `.map()`:
utils/cycles-sync/src/main.rs#L93
warning: you are explicitly cloning with `.map()`
--> utils/cycles-sync/src/main.rs:93:48
|
93 | let (debtor_id, creditor_id) = obligation_user_map
| ________________________________________________^
94 | | .get(obligation_digest)
95 | | .map(Clone::clone)
| |______________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `#[warn(clippy::map_clone)]` on by default
help: consider calling the dedicated `copied` method
|
93 ~ let (debtor_id, creditor_id) = obligation_user_map
94 + .get(obligation_digest).copied()
|
|
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
nightly-fmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
nightly-fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
nightly-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
nightly-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
nightly-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
nightly-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|