Derive Debug instead of implementing it

This commit is contained in:
Matthias Beyer 2016-01-19 18:25:13 +01:00
parent f7494333fa
commit fe0e338130

View file

@ -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 {