about summary refs log tree commit diff
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-09 16:14:30 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-09 16:14:30 +0900
commit4bb90f5cc8e0347534436612f45a3c22c7e265bb (patch)
tree9e7b5de844f456560f826a9631a78cd98c204088 /src/config/mod.rs
parente70e6eb273d449e78349dde9a0980414df102c06 (diff)
Fix rust_2018_idioms warnings
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 3685db306c8..e51279018e2 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -208,7 +208,7 @@ fn get_toml_path(dir: &Path) -> Result<Option<PathBuf>, Error> {
     Ok(None)
 }
 
-fn config_path(options: &CliOptions) -> Result<Option<PathBuf>, Error> {
+fn config_path(options: &dyn CliOptions) -> Result<Option<PathBuf>, Error> {
     let config_path_not_found = |path: &str| -> Result<Option<PathBuf>, Error> {
         Err(Error::new(
             ErrorKind::NotFound,