From ea4d70a3e6a793bd2528c3415bae8cf4085d6dfd Mon Sep 17 00:00:00 2001 From: meh Date: Thu, 18 Mar 2021 15:40:35 +0100 Subject: [PATCH] style: run cargo fmt --- src/format/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/format/mod.rs b/src/format/mod.rs index eabee75..c1bb873 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -302,7 +302,6 @@ pub fn output_as_with>( #[cfg(unix)] fn from_os_str(path_or_url: impl AsRef) -> CString { use std::os::unix::ffi::OsStrExt; - CString::new(path_or_url.as_ref().as_bytes()).unwrap() }