Skip to content

Commit 88ebb67

Browse files
committed
chore: fix ci and update version
1 parent d166edc commit 88ebb67

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sass-embedded"
3-
version = "0.6.2"
3+
version = "0.7.0"
44
authors = ["ahabhgk <ahabhgk@gmail.com>"]
55
edition = "2021"
66
resolver = "2"

src/legacy.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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" {

src/legacy/importer.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff 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

tests/legacy_importer_spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)