Skip to content

Use Interior Mutability in Static References to Host I/O Caches #307

Use Interior Mutability in Static References to Host I/O Caches

Use Interior Mutability in Static References to Host I/O Caches #307

Triggered via pull request December 10, 2024 03:03
Status Success
Total duration 1m 46s
Artifacts

linux.yml

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

Annotations

14 warnings
manually reimplementing `div_ceil`: stylus-sdk/src/storage/array.rs#L125
warning: manually reimplementing `div_ceil` --> stylus-sdk/src/storage/array.rs:125:22 | 125 | let packed = (N + density - 1) / density; // ceil division for packed items. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `N.div_ceil(density)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil = note: `#[warn(clippy::manual_div_ceil)]` on by default
the following explicit lifetimes could be elided: 'a: stylus-sdk/src/call/context.rs#L119
warning: the following explicit lifetimes could be elided: 'a --> stylus-sdk/src/call/context.rs:119:6 | 119 | impl<'a, T> StaticCallContext for &'a mut T where T: TopLevelStorage {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 119 - impl<'a, T> StaticCallContext for &'a mut T where T: TopLevelStorage {} 119 + impl<T> StaticCallContext for &mut T where T: TopLevelStorage {} |
the following explicit lifetimes could be elided: 'a: stylus-sdk/src/call/context.rs#L116
warning: the following explicit lifetimes could be elided: 'a --> stylus-sdk/src/call/context.rs:116:6 | 116 | impl<'a, T> StaticCallContext for &'a T where T: TopLevelStorage {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 116 - impl<'a, T> StaticCallContext for &'a T where T: TopLevelStorage {} 116 + impl<T> StaticCallContext for &T where T: TopLevelStorage {} |
the following explicit lifetimes could be elided: 'a: stylus-sdk/src/call/context.rs#L96
warning: the following explicit lifetimes could be elided: 'a --> stylus-sdk/src/call/context.rs:96:6 | 96 | impl<'a, T> CallContext for &'a T | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 96 - impl<'a, T> CallContext for &'a T 96 + impl<T> CallContext for &T |
the following explicit lifetimes could be elided: 'ast: stylus-proc/src/macros/sol_interface.rs#L291
warning: the following explicit lifetimes could be elided: 'ast --> stylus-proc/src/macros/sol_interface.rs:291:6 | 291 | impl<'ast> Visit<'ast> for FunctionParameters { | ^^^^ ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 291 - impl<'ast> Visit<'ast> for FunctionParameters { 291 + impl Visit<'_> for FunctionParameters { |
the following explicit lifetimes could be elided: 'ast: stylus-proc/src/macros/sol_interface.rs#L291
warning: the following explicit lifetimes could be elided: 'ast --> stylus-proc/src/macros/sol_interface.rs:291:6 | 291 | impl<'ast> Visit<'ast> for FunctionParameters { | ^^^^ ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 291 - impl<'ast> Visit<'ast> for FunctionParameters { 291 + impl Visit<'_> for FunctionParameters { |
manually reimplementing `div_ceil`: stylus-sdk/src/storage/array.rs#L125
warning: manually reimplementing `div_ceil` --> stylus-sdk/src/storage/array.rs:125:22 | 125 | let packed = (N + density - 1) / density; // ceil division for packed items. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `N.div_ceil(density)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil = note: `#[warn(clippy::manual_div_ceil)]` on by default
the following explicit lifetimes could be elided: 'a: stylus-sdk/src/call/context.rs#L119
warning: the following explicit lifetimes could be elided: 'a --> stylus-sdk/src/call/context.rs:119:6 | 119 | impl<'a, T> StaticCallContext for &'a mut T where T: TopLevelStorage {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 119 - impl<'a, T> StaticCallContext for &'a mut T where T: TopLevelStorage {} 119 + impl<T> StaticCallContext for &mut T where T: TopLevelStorage {} |
the following explicit lifetimes could be elided: 'a: stylus-sdk/src/call/context.rs#L116
warning: the following explicit lifetimes could be elided: 'a --> stylus-sdk/src/call/context.rs:116:6 | 116 | impl<'a, T> StaticCallContext for &'a T where T: TopLevelStorage {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 116 - impl<'a, T> StaticCallContext for &'a T where T: TopLevelStorage {} 116 + impl<T> StaticCallContext for &T where T: TopLevelStorage {} |
the following explicit lifetimes could be elided: 'a: stylus-sdk/src/call/context.rs#L96
warning: the following explicit lifetimes could be elided: 'a --> stylus-sdk/src/call/context.rs:96:6 | 96 | impl<'a, T> CallContext for &'a T | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 96 - impl<'a, T> CallContext for &'a T 96 + impl<T> CallContext for &T |
the following explicit lifetimes could be elided: 'ast: stylus-proc/src/macros/sol_interface.rs#L291
warning: the following explicit lifetimes could be elided: 'ast --> stylus-proc/src/macros/sol_interface.rs:291:6 | 291 | impl<'ast> Visit<'ast> for FunctionParameters { | ^^^^ ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 291 - impl<'ast> Visit<'ast> for FunctionParameters { 291 + impl Visit<'_> for FunctionParameters { |
the following explicit lifetimes could be elided: 'ast: stylus-proc/src/macros/sol_interface.rs#L291
warning: the following explicit lifetimes could be elided: 'ast --> stylus-proc/src/macros/sol_interface.rs:291:6 | 291 | impl<'ast> Visit<'ast> for FunctionParameters { | ^^^^ ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 291 - impl<'ast> Visit<'ast> for FunctionParameters { 291 + impl Visit<'_> for FunctionParameters { |
(x86_64-unknown-linux-gnu, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
(x86_64-unknown-linux-gnu, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636