Derive Debug instead of implementing it
This commit is contained in:
parent
f7494333fa
commit
fe0e338130
1 changed files with 1 additions and 9 deletions
|
@ -74,6 +74,7 @@ use self::error::{ConfigError, ConfigErrorKind};
|
|||
|
||||
pub type Result<T> = RResult<T, ConfigError>;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Configuration {
|
||||
verbosity: bool,
|
||||
editor: Option<String>,
|
||||
|
@ -142,15 +143,6 @@ fn fetch_config(rtp: &PathBuf) -> Result<Config> {
|
|||
.ok_or(ConfigError::new(ConfigErrorKind::NoConfigFileFound, None))
|
||||
}
|
||||
|
||||
impl Debug for Configuration {
|
||||
|
||||
fn fmt(&self, f: &mut Formatter) -> RResult<(), Error> {
|
||||
try!(write!(f, "Configuration (verbose: {})", self.verbosity));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl Default for Configuration {
|
||||
|
||||
fn default() -> Configuration {
|
||||
|
|
Loading…
Reference in a new issue