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 1
1
[package ]
2
2
name = " sass-embedded"
3
- version = " 0.6.2 "
3
+ version = " 0.7.0 "
4
4
authors = [" ahabhgk <ahabhgk@gmail.com>" ]
5
5
edition = " 2021"
6
6
resolver = " 2"
Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ impl Embedded {
70
70
options. importers = importers;
71
71
self . compile ( file, options)
72
72
} 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
+ )
76
77
} ?;
77
78
Ok ( LegacyResult :: new (
78
79
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>> {
322
322
} else if paths. len ( ) == 1 {
323
323
Ok ( Some ( paths[ 0 ] . clone ( ) ) )
324
324
} 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
+ )
333
336
}
334
337
}
335
338
Original file line number Diff line number Diff line change @@ -1811,7 +1811,7 @@ mod gracefully_handles_an_error_when {
1811
1811
_: & str ,
1812
1812
_: & str ,
1813
1813
) -> Result < Option < LegacyImporterResult > > {
1814
- Err ( Exception :: new ( "oh no" ) )
1814
+ Err ( Exception :: new ( "oh no" ) . into ( ) )
1815
1815
}
1816
1816
}
1817
1817
You can’t perform that action at this time.
0 commit comments