fix: offer/bid id generation #1349
Annotations
6 errors
lint:
src/rgb/swap.rs#L164
error: useless use of `format!`
--> src/rgb/swap.rs:164:23
|
164 | hasher.update(format!("{contract_id}").as_bytes());
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `contract_id.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `-D clippy::useless-format` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_format)]`
|
lint:
src/rgb/swap.rs#L314
error: useless use of `format!`
--> src/rgb/swap.rs:314:23
|
314 | hasher.update(format!("{contract_id}").as_bytes());
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `contract_id.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
lint
Process completed with exit code 1.
|
lint-wasm:
src/rgb/swap.rs#L164
error: useless use of `format!`
--> src/rgb/swap.rs:164:23
|
164 | hasher.update(format!("{contract_id}").as_bytes());
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `contract_id.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `-D clippy::useless-format` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_format)]`
|
lint-wasm:
src/rgb/swap.rs#L314
error: useless use of `format!`
--> src/rgb/swap.rs:314:23
|
314 | hasher.update(format!("{contract_id}").as_bytes());
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `contract_id.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
|
lint-wasm
Process completed with exit code 1.
|