diff --git a/runtime/src/log.rs b/runtime/src/log.rs index 3987f8d1..f91d326f 100644 --- a/runtime/src/log.rs +++ b/runtime/src/log.rs @@ -80,10 +80,7 @@ fn convert_log_path_to_string(log_path: &FileSpec) -> String { let log_path = log_path.as_pathbuf(None); match log_path.canonicalize() { // Case: The path exists: - Ok(log_path) => match log_path.to_str() { - Some(path_string) => path_string.to_string(), - None => String::from(""), - }.to_string(), + Ok(log_path) => log_path.to_str().unwrap().to_string(), // Case: The path does not exist. Let's try to build the // absolute path without touching the file system: