code, code_size hostios #56
Annotations
4 warnings
use of `offset` with a `usize` casted to an `isize`:
stylus-sdk/src/types.rs#L56
warning: use of `offset` with a `usize` casted to an `isize`
--> stylus-sdk/src/types.rs:56:17
|
56 | data.as_mut_ptr().offset(initial_len as isize),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.as_mut_ptr().add(initial_len)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
= note: `#[warn(clippy::ptr_offset_with_cast)]` on by default
|
use of a fallible conversion when an infallible one could be used:
stylus-sdk/src/storage/map.rs#L189
warning: use of a fallible conversion when an infallible one could be used
--> stylus-sdk/src/storage/map.rs:189:32
|
189 | let int: U160 = self.0.try_into().unwrap();
| ^^^^^^^^^^^^^^^^^^^ help: use: `into()`
|
= note: converting `FixedBytes<20>` to `Uint<160, 3>` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
= note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default
|
use of `offset` with a `usize` casted to an `isize`:
stylus-sdk/src/types.rs#L56
warning: use of `offset` with a `usize` casted to an `isize`
--> stylus-sdk/src/types.rs:56:17
|
56 | data.as_mut_ptr().offset(initial_len as isize),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `data.as_mut_ptr().add(initial_len)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
= note: `#[warn(clippy::ptr_offset_with_cast)]` on by default
|
use of a fallible conversion when an infallible one could be used:
stylus-sdk/src/storage/map.rs#L189
warning: use of a fallible conversion when an infallible one could be used
--> stylus-sdk/src/storage/map.rs:189:32
|
189 | let int: U160 = self.0.try_into().unwrap();
| ^^^^^^^^^^^^^^^^^^^ help: use: `into()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
= note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default
|