diff --git a/src/lib.rs b/src/lib.rs index 197ee72..6ae474c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,10 +85,6 @@ //! # rt.block_on(demo()); //! ``` -#[macro_use] -#[cfg(test)] -extern crate pretty_assertions; - mod index; mod macros; mod repository; diff --git a/tests/indexes.rs b/tests/indexes.rs index c0b6cff..e234217 100644 --- a/tests/indexes.rs +++ b/tests/indexes.rs @@ -1,5 +1,4 @@ -#[macro_use] -extern crate pretty_assertions; +use pretty_assertions::assert_eq; use mongodb::Client; use mongodb::bson::{Document, doc}; diff --git a/tests/some_operations.rs b/tests/some_operations.rs index c0241f0..3b88fd6 100644 --- a/tests/some_operations.rs +++ b/tests/some_operations.rs @@ -1,5 +1,4 @@ -#[macro_use] -extern crate pretty_assertions; +use pretty_assertions::assert_eq; use futures_util::StreamExt; use mongodm::prelude::*;