mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
Add missing_const_for_fn clippy lint (#8498)
This commit is contained in:
@@ -30,7 +30,7 @@ impl<T> From<(T, T)> for GotExpected<T> {
|
||||
impl<T> GotExpected<T> {
|
||||
/// Creates a new error from a pair of values.
|
||||
#[inline]
|
||||
pub fn new(got: T, expected: T) -> Self {
|
||||
pub const fn new(got: T, expected: T) -> Self {
|
||||
Self { got, expected }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user