Skip to content

code, code_size hostios #56

code, code_size hostios

code, code_size hostios #56

Triggered via pull request January 17, 2024 21:18
Status Success
Total duration 7m 13s
Artifacts

smoke-test.yml

on: pull_request
Matrix: smoke-test
Fit to window
Zoom out
Zoom in

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