Skip to content

Commit ea02c04

Browse files
committed
fix(client): Add #[cfg(try_from)] to TryFrom import
Add #[cfg(try_from)] to TryFrom import. Ref Issue; hyperium#1808
1 parent 4dd18a8 commit ea02c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/client/connect/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! - The [`Connect`](Connect) trait and related types to build custom connectors.
88
use std::error::Error as StdError;
99
use std::{fmt, mem};
10-
use std::convert::TryFrom;
10+
#[cfg(try_from)] use std::convert::TryFrom;
1111

1212
use bytes::{BufMut, Bytes, BytesMut};
1313
use futures::Future;

0 commit comments

Comments
 (0)