[−][src]Macro surf::http::ensure_eq
Return early with an error if two expressions are not equal to each other.
This macro is equivalent to if $left != $right { return Err(From::from($err)); }.
Analogously to assert_eq!, ensure_eq! takes two expressions and exits the function
if the expressions are not equal. Unlike assert_eq!, ensure_eq! returns an Error
rather than panicking.