From 1ed353756e133017722531db52e2320e1286ac22 Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Wed, 23 Aug 2017 08:06:53 +0200 Subject: [PATCH] Make it compile on stable --- src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 381acf2..70aa72f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -151,9 +151,11 @@ macro_rules! c_str_to_string( macro_rules! path_to_cstr( ($path:expr) => (match $path.to_str() { - Some(path) => match ::std::ffi::CString::new(path) { - Ok(string) => string, - _ => raise!("failed to process a path"), + Some(path) => { + match ::std::ffi::CString::new(path) { + Ok(string) => string, + _ => raise!("failed to process a path"), + } } _ => raise!("failed to process a path"), });