Skip to content

Commit a24b927

Browse files
committed
Fix CopyIn Future bound
1 parent dead5fe commit a24b927

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tokio-postgres/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ where
293293

294294
impl<S> Future for CopyIn<S>
295295
where
296-
S: Stream<Item = Vec<u8>>,
296+
S: Stream,
297+
S::Item: AsRef<[u8]>,
297298
S::Error: Into<Box<StdError + Sync + Send>>,
298299
{
299300
type Item = u64;

0 commit comments

Comments
 (0)