diff --git a/src/config.rs b/src/config.rs index 24c1f535..4712f20a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -203,7 +203,7 @@ impl Config { } else { self.rest .insert(index, value) - .map_err(|e| ErrorKind::TomlQueryError(e))?; + .map_err(ErrorKind::TomlQueryError)?; } Ok(())