From d3d7ab127371b6fe78ae458d9967ef8254cf2476 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 3 Apr 2019 14:13:33 +0200 Subject: [PATCH] src/tools/file_logger.rs: new - accept AsRef --- src/tools/file_logger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/file_logger.rs b/src/tools/file_logger.rs index 423e998c..0475073b 100644 --- a/src/tools/file_logger.rs +++ b/src/tools/file_logger.rs @@ -34,7 +34,7 @@ macro_rules! flog { impl FileLogger { - pub fn new(file_name: &str, to_stdout: bool) -> Result { + pub fn new>(file_name: P, to_stdout: bool) -> Result { let file = std::fs::OpenOptions::new() .read(true)