Skip to content

Commit

Permalink
Be forward compatible with rust-lang/rust#59928
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril authored Apr 30, 2019
1 parent 5f67125 commit a708f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl fmt::Display for Code {
impl TryFrom<u8> for Code {
type Error = error::Error;

fn try_from(i: u8) -> Result<Self, Self::Error> {
fn try_from(i: u8) -> Result<Self, error::Error> {
match i {
0 => Ok(Code::Req),
1 => Ok(Code::Ok),
Expand Down

0 comments on commit a708f07

Please sign in to comment.