Unverified Commit 4ff763c9 authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Fix `clippy::self-named-constructor` (#866)

error: constructor `lazy` has the same name as the type
	   --> crates/storage/src/lazy/mod.rs:121:5

	       121 | /     pub(crate) fn lazy(key: Key) -> Self {
	       122 | |         Self {
	       123 | |             cell: LazyCell::lazy(key),
	       124 | |         }
	       125 | |     }
		   | |_____^

	= note: `-D clippy::self-named-constructor` implied by `-D warnings`
	= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructor
parent e5b400be
Pipeline #148056 passed with stages
in 41 minutes and 34 seconds
......@@ -72,7 +72,7 @@ where
fn lazy(allocation: DynamicAllocation) -> Self {
Self {
allocation,
value: Lazy::lazy(allocation.key()),
value: Lazy::from_key(allocation.key()),
}
}
......
......@@ -118,7 +118,7 @@ where
/// Creates a true lazy storage value for the given key.
#[must_use]
pub(crate) fn lazy(key: Key) -> Self {
pub(crate) fn from_key(key: Key) -> Self {
Self {
cell: LazyCell::lazy(key),
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment