From 10059daad97d5f4ba3b1267d7c29302ad8e4414f Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Mon, 26 Dec 2022 19:11:36 -0500 Subject: [PATCH] rustfmt --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 649f703..ea67dab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,11 @@ fn raw_to_parse_error(map: &CodeMap, err: Error, unicode: bool) -> Box { Box::new(Error::from_loc(message, map.look_up_span(span), unicode)) } -fn from_string_with_file_name>(input: String, file_name: P, options: &Options) -> Result { +fn from_string_with_file_name>( + input: String, + file_name: P, + options: &Options, +) -> Result { let mut map = CodeMap::new(); let path = file_name.as_ref(); let file = map.add_file(path.to_string_lossy().into_owned(), input); @@ -178,11 +182,7 @@ fn from_string_with_file_name>(input: String, file_name: P, optio #[inline] pub fn from_path>(p: P, options: &Options) -> Result { - from_string_with_file_name( - String::from_utf8(options.fs.read(p.as_ref())?)?, - p, - options, - ) + from_string_with_file_name(String::from_utf8(options.fs.read(p.as_ref())?)?, p, options) } /// Compile CSS from a string