We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de2f2b commit 8755788Copy full SHA for 8755788
src/coll/mod.rs
@@ -167,13 +167,10 @@ impl<T> Collection<T> {
167
168
/// Gets a clone of the `Collection` with a different type `U`.
169
pub fn clone_with_type<U>(&self) -> Collection<U> {
170
- let options = CollectionOptions::builder()
171
- .selection_criteria(self.inner.selection_criteria.clone())
172
- .read_concern(self.inner.read_concern.clone())
173
- .write_concern(self.inner.write_concern.clone())
174
- .build();
175
-
176
- Collection::new(self.inner.db.clone(), &self.inner.name, Some(options))
+ Collection {
+ inner: self.inner.clone(),
+ _phantom: Default::default(),
+ }
177
}
178
179
/// Get the `Client` that this collection descended from.
0 commit comments