File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " sass-embedded"
3- version = " 0.6.2 "
3+ version = " 0.7.0 "
44authors = [
" ahabhgk <[email protected] >" ]
55edition = " 2021"
66resolver = " 2"
Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ impl Embedded {
7070 options. importers = importers;
7171 self . compile ( file, options)
7272 } else {
73- Err ( Exception :: new (
74- "Either options.data or options.file must be set." ,
75- ) )
73+ Err (
74+ Exception :: new ( "Either options.data or options.file must be set." )
75+ . into ( ) ,
76+ )
7677 } ?;
7778 Ok ( LegacyResult :: new (
7879 if entry == "stdin" {
Original file line number Diff line number Diff line change @@ -322,14 +322,17 @@ fn exactly_one(paths: Vec<PathBuf>) -> Result<Option<PathBuf>> {
322322 } else if paths. len ( ) == 1 {
323323 Ok ( Some ( paths[ 0 ] . clone ( ) ) )
324324 } else {
325- Err ( Exception :: new ( format ! (
326- "It's not clear which file to import. Found:\n {}" ,
327- paths
328- . iter( )
329- . map( |p| format!( " {}" , p. to_string_lossy( ) ) )
330- . collect:: <Vec <String >>( )
331- . join( "\n " )
332- ) ) )
325+ Err (
326+ Exception :: new ( format ! (
327+ "It's not clear which file to import. Found:\n {}" ,
328+ paths
329+ . iter( )
330+ . map( |p| format!( " {}" , p. to_string_lossy( ) ) )
331+ . collect:: <Vec <String >>( )
332+ . join( "\n " )
333+ ) )
334+ . into ( ) ,
335+ )
333336 }
334337}
335338
Original file line number Diff line number Diff line change @@ -1811,7 +1811,7 @@ mod gracefully_handles_an_error_when {
18111811 _: & str ,
18121812 _: & str ,
18131813 ) -> Result < Option < LegacyImporterResult > > {
1814- Err ( Exception :: new ( "oh no" ) )
1814+ Err ( Exception :: new ( "oh no" ) . into ( ) )
18151815 }
18161816 }
18171817
You can’t perform that action at this time.
0 commit comments