Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 18, 2024
1 parent 87f38e6 commit 5384488
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions turbopack/crates/turbo-tasks-backend/src/database/noop_kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
= ()
Expand Down
2 changes: 1 addition & 1 deletion turbopack/crates/turbo-tasks-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn lmdb_backing_storage(path: &Path) -> Result<LmdbBackingStorage> {
pub type NoopBackingStorage = KeyValueDatabaseBackingStorage<NoopKvDb>;

pub fn noop_backing_storage(_path: &Path) -> Result<NoopBackingStorage> {
Ok(KeyValueDatabaseBackingStorage::new(NoopKvDb::new()))
Ok(KeyValueDatabaseBackingStorage::new(NoopKvDb))
}

pub type DefaultBackingStorage = LmdbBackingStorage;
Expand Down

0 comments on commit 5384488

Please sign in to comment.