瀏覽代碼

Fix read to use a reference

Samuel W. Flint 5 年之前
父節點
當前提交
af87a4448e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/config.rs

+ 1 - 1
src/config.rs

@@ -82,7 +82,7 @@ pub fn find_config_file(original: Option<&str>) -> PathBuf {
     }
 }
 
-pub fn read_configuration_file(filename: PathBuf) -> Config {
+pub fn read_configuration_file(filename: &PathBuf) -> Config {
     let text = read_to_string(filename);
     match text {
         Err(_) => {