Skip to content

Commit 8ccf736

Browse files
committed
test_db: Ignore new_without_default clippy warning
For some reason the lockfile update is causing this warning to suddenly pop up. In this case `new()` makes it much clearer that a new database is created, while `default()` could be a bit misleading, so we are explicitly not following the clippy lint here.
1 parent d8b0f85 commit 8ccf736

File tree

1 file changed

+1
-0
lines changed
  • crates/crates_io_test_db/src

1 file changed

+1
-0
lines changed

crates/crates_io_test_db/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ impl TestDatabase {
8484
/// Creates a new Postgres database based on a template with all of the
8585
/// migrations already applied. Once the `TestDatabase` instance is dropped,
8686
/// the database is automatically deleted.
87+
#[allow(clippy::new_without_default)]
8788
#[instrument]
8889
pub fn new() -> TestDatabase {
8990
Self::new_inner(|name, conn| {

0 commit comments

Comments
 (0)