mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-16 17:25:11 +00:00
unwrap_err() now uses Debug
This commit is contained in:
parent
815ec8a4ab
commit
184c27f5b4
@ -330,8 +330,6 @@ mod test {
|
|||||||
use super::Misfire;
|
use super::Misfire;
|
||||||
use super::Misfire::*;
|
use super::Misfire::*;
|
||||||
|
|
||||||
use std::fmt;
|
|
||||||
|
|
||||||
fn is_helpful(misfire: Result<Options, Misfire>) -> bool {
|
fn is_helpful(misfire: Result<Options, Misfire>) -> bool {
|
||||||
match misfire {
|
match misfire {
|
||||||
Err(Help(_)) => true,
|
Err(Help(_)) => true,
|
||||||
@ -339,12 +337,6 @@ mod test {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for Options {
|
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
||||||
write!(f, "{:?}", self)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn help() {
|
fn help() {
|
||||||
let opts = Options::getopts(&[ "--help".to_string() ]);
|
let opts = Options::getopts(&[ "--help".to_string() ]);
|
||||||
|
Loading…
Reference in New Issue
Block a user