We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e60921b commit 9d7ec36Copy full SHA for 9d7ec36
src/sync/test.rs
@@ -41,7 +41,7 @@ pub fn drop_collection<T>(coll: &Collection<T>)
41
where
42
T: Serialize + DeserializeOwned + Unpin + Debug + Send + Sync,
43
{
44
- match coll.drop(None).as_ref().map_err(|e| e.as_ref()) {
+ match coll.drop(None).as_ref().map_err(|e| &e.kind) {
45
Err(ErrorKind::CommandError(CommandError { code: 26, .. })) | Ok(_) => {}
46
e @ Err(_) => {
47
e.unwrap();
0 commit comments