mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore: set clippy check for const fn to warn (#15777)
This commit is contained in:
@@ -38,12 +38,12 @@ pub struct CachedReads {
|
||||
|
||||
impl CachedReads {
|
||||
/// Gets a [`DatabaseRef`] that will cache reads from the given database.
|
||||
pub fn as_db<DB>(&mut self, db: DB) -> CachedReadsDBRef<'_, DB> {
|
||||
pub const fn as_db<DB>(&mut self, db: DB) -> CachedReadsDBRef<'_, DB> {
|
||||
self.as_db_mut(db).into_db()
|
||||
}
|
||||
|
||||
/// Gets a mutable [`Database`] that will cache reads from the underlying database.
|
||||
pub fn as_db_mut<DB>(&mut self, db: DB) -> CachedReadsDbMut<'_, DB> {
|
||||
pub const fn as_db_mut<DB>(&mut self, db: DB) -> CachedReadsDbMut<'_, DB> {
|
||||
CachedReadsDbMut { cached: self, db }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user