From 9d90e786445ae93e6771d70c9f5d4285fc4109e5 Mon Sep 17 00:00:00 2001 From: Raamakrishnan Date: Thu, 20 Feb 2020 21:50:19 +0530 Subject: [PATCH] Fix file path as_ref usage --- src/file_parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/file_parser.rs b/src/file_parser.rs index f3d6296..f3e6c77 100644 --- a/src/file_parser.rs +++ b/src/file_parser.rs @@ -59,6 +59,7 @@ impl Filelist { /// Returns an error if the filelist in `path` cannot be read. Also returns /// error if any of the nested filelists cannot be read. pub fn parse_file(path: impl AsRef) -> Result> { + let path = path.as_ref(); let contents = fs::read_to_string(path)?; let mut filelist = Filelist::new();