diff --git a/turbopack/crates/turbo-tasks-backend/src/database/noop_kv.rs b/turbopack/crates/turbo-tasks-backend/src/database/noop_kv.rs index 606176972e318..f30dce220efbd 100644 --- a/turbopack/crates/turbo-tasks-backend/src/database/noop_kv.rs +++ b/turbopack/crates/turbo-tasks-backend/src/database/noop_kv.rs @@ -6,13 +6,6 @@ use crate::database::key_value_database::{KeySpace, KeyValueDatabase, WriteBatch pub struct NoopKvDb; -impl NoopKvDb { - #[allow(dead_code)] - pub fn new() -> Self { - Self - } -} - impl KeyValueDatabase for NoopKvDb { type ReadTransaction<'l> = () diff --git a/turbopack/crates/turbo-tasks-backend/src/lib.rs b/turbopack/crates/turbo-tasks-backend/src/lib.rs index 18a8a8213ee83..12bc036b2296f 100644 --- a/turbopack/crates/turbo-tasks-backend/src/lib.rs +++ b/turbopack/crates/turbo-tasks-backend/src/lib.rs @@ -32,7 +32,7 @@ pub fn lmdb_backing_storage(path: &Path) -> Result { pub type NoopBackingStorage = KeyValueDatabaseBackingStorage; pub fn noop_backing_storage(_path: &Path) -> Result { - Ok(KeyValueDatabaseBackingStorage::new(NoopKvDb::new())) + Ok(KeyValueDatabaseBackingStorage::new(NoopKvDb)) } pub type DefaultBackingStorage = LmdbBackingStorage;