Skip to content

Commit 01238f5

Browse files
committed
fix destination trait bound
1 parent fac86a0 commit 01238f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gridfs.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl GridFsBucket {
202202
&self,
203203
id: Bson,
204204
filename: String,
205-
source: impl futures::io::AsyncRead,
205+
source: impl futures_util::AsyncRead,
206206
options: impl Into<Option<GridFsUploadOptions>>,
207207
) {
208208
todo!()
@@ -230,7 +230,7 @@ impl GridFsBucket {
230230
pub async fn upload_from_futures_0_3_reader(
231231
&self,
232232
filename: String,
233-
source: impl futures::io::AsyncRead,
233+
source: impl futures_util::AsyncRead,
234234
options: impl Into<Option<GridFsUploadOptions>>,
235235
) {
236236
self.upload_from_futures_0_3_reader_with_id(
@@ -276,7 +276,7 @@ impl GridFsBucket {
276276
pub async fn download_to_futures_0_3_writer(
277277
&self,
278278
id: Bson,
279-
destination: impl futures::io::AsyncWrite,
279+
destination: impl futures_util::AsyncWrite,
280280
) {
281281
todo!()
282282
}
@@ -299,7 +299,7 @@ impl GridFsBucket {
299299
pub async fn download_to_futures_0_3_writer_by_name(
300300
&self,
301301
filename: String,
302-
destination: impl futures::io::AsyncWrite,
302+
destination: impl futures_util::AsyncWrite,
303303
options: impl Into<Option<GridFsDownloadByNameOptions>>,
304304
) {
305305
todo!()

0 commit comments

Comments
 (0)