Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
douggynix committed Jul 6, 2024
1 parent 72e5c13 commit 3419bb5
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions src/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,7 @@ impl<M: Model + std::marker::Send + std::marker::Sync + std::marker::Sync + std:
}
}

impl<
M: Model
+ std::marker::Send
+ std::marker::Send
+ std::marker::Send
+ std::marker::Send
+ std::marker::Send
+ std::marker::Send
+ std::marker::Send
+ std::marker::Send
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync
+ std::marker::Sync,
> Repository<M>
{
impl<M: Model + Send + Sync> Repository<M> {
/// Create a new repository from the given mongo client.
pub fn new(db: mongodb::Database) -> Self {
let coll = if let Some(options) = M::CollConf::collection_options() {
Expand Down

0 comments on commit 3419bb5

Please sign in to comment.