diff --git a/src/bson.rs b/src/bson.rs index 07a424a3..3a455f4e 100644 --- a/src/bson.rs +++ b/src/bson.rs @@ -237,6 +237,15 @@ where } } +impl From<&mut T> for Bson +where + for<'a> &'a T: Into, +{ + fn from(t: &mut T) -> Bson { + (&*t).into() + } +} + impl From> for Bson where T: Into,