File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ impl RawArrayBuf {
5353 }
5454 }
5555
56+ #[ allow( clippy:: should_implement_trait) ]
5657 pub fn from_iter < B , I > ( iter : I ) -> crate :: error:: Result < Self >
5758 where
5859 B : BindRawBsonRef ,
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ impl RawDocumentBuf {
8787 Self :: decode_from_bytes ( buf)
8888 }
8989
90+ #[ allow( clippy:: should_implement_trait) ]
9091 pub fn from_iter < S , B , I > ( iter : I ) -> Result < Self >
9192 where
9293 S : AsRef < str > ,
Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ macro_rules! trait_impls {
459459 where
460460 D : serde:: Deserializer <' de>,
461461 {
462+ use serde:: Deserialize as _;
462463 let uuid = Uuid :: deserialize( deserializer) ?;
463464 Ok ( uuid. into( ) )
464465 }
@@ -471,6 +472,7 @@ macro_rules! trait_impls {
471472 where
472473 S : serde:: Serializer ,
473474 {
475+ use serde:: Serialize as _;
474476 let uuid = Uuid :: from( * source) ;
475477 uuid. serialize( serializer)
476478 }
You can’t perform that action at this time.
0 commit comments