Avoid direct dependency on saphyr-parser

This commit is contained in:
Oliver Hamlet
2025-05-18 22:26:10 +01:00
parent b6c7d6ce26
commit 8c317d93ed
3 changed files with 1 additions and 6 deletions
Generated
-1
View File
@@ -558,7 +558,6 @@ dependencies = [
"rayon",
"rustc-hash",
"saphyr",
"saphyr-parser",
"tempfile",
"unicase",
"windows",
-1
View File
@@ -12,7 +12,6 @@ petgraph = "0.8.1"
rayon = "1.10.0"
rustc-hash = "2.1.1"
saphyr = "0.0.4"
saphyr-parser = "0.0.4"
unicase = "2.8.1"
esplugin.workspace = true
+1 -4
View File
@@ -56,10 +56,7 @@ pub fn to_unmarked_yaml<'a>(yaml: &MarkedYaml<'a>) -> Yaml<'a> {
}
pub fn as_string_node(value: &str) -> MarkedYaml {
MarkedYaml {
span: saphyr_parser::Span::default(),
data: YamlData::Value(Scalar::String(value.into())),
}
MarkedYaml::value_from_str(value)
}
pub fn get_string_value<'a>(