diff --git a/Cargo.lock b/Cargo.lock index 181fcab0..b643463d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -558,7 +558,6 @@ dependencies = [ "rayon", "rustc-hash", "saphyr", - "saphyr-parser", "tempfile", "unicase", "windows", diff --git a/Cargo.toml b/Cargo.toml index e535c072..c233f4ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/src/metadata/yaml/parse.rs b/src/metadata/yaml/parse.rs index e953815a..71a85120 100644 --- a/src/metadata/yaml/parse.rs +++ b/src/metadata/yaml/parse.rs @@ -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>(