Skip to content

Commit

Permalink
Merge pull request #1 from Centril/patch-1
Browse files Browse the repository at this point in the history
Be forward compatible with rust-lang/rust#59928
  • Loading branch information
daviswahl authored May 4, 2019
2 parents 5f67125 + a708f07 commit c2a3e28
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 c2a3e28

Please sign in to comment.