Skip to content

Commit

Permalink
Fix warnings in return_error!().
Browse files Browse the repository at this point in the history
  • Loading branch information
progval authored and Geal committed Oct 6, 2018
1 parent 78e8426 commit d4e5686
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,15 +424,13 @@ macro_rules! return_error (
($i:expr, $submac:ident!( $($args:tt)* )) => (
{
use $crate::lib::std::result::Result::*;
use $crate::{Context,Err,ErrorKind};
use $crate::{Context,Err};

let i_ = $i.clone();
let cl = || {
$submac!(i_, $($args)*)
};

fn unify_types<I,E>(_: &Context<I,E>, _: &Context<I,E>) {}

match cl() {
Err(Err::Incomplete(x)) => Err(Err::Incomplete(x)),
Ok((i, o)) => Ok((i, o)),
Expand Down

0 comments on commit d4e5686

Please sign in to comment.