Skip to content

Commit

Permalink
fix(client): Add #[cfg(try_from)] to TryFrom import
Browse files Browse the repository at this point in the history
Add #[cfg(try_from)] to TryFrom import.

Ref Issue; hyperium#1808
  • Loading branch information
M3rs committed May 9, 2019
1 parent 4dd18a8 commit ea02c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/connect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! - The [`Connect`](Connect) trait and related types to build custom connectors.
use std::error::Error as StdError;
use std::{fmt, mem};
use std::convert::TryFrom;
#[cfg(try_from)] use std::convert::TryFrom;

use bytes::{BufMut, Bytes, BytesMut};
use futures::Future;
Expand Down

0 comments on commit ea02c04

Please sign in to comment.