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 614e60e commit ae16a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub trait ResultExt {
impl<T> ResultExt for Result<T> {
type Ok = T;

fn err_tag<S>(self, msg: S) -> Result<Self::Ok>
fn err_tag<S>(self, msg: S) -> Result<T>
where S: Into<Cow<'static, str>> {
match self {
Ok(v) => Ok(v),
Expand Down

0 comments on commit ae16a6f

Please sign in to comment.