소스 검색

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(_) => {