Преглед изворни кода

Fix read to use a reference

Samuel W. Flint пре 4 година
родитељ
комит
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(_) => {