Remove stale tag handling code.

This commit is contained in:
Ethiraric 2023-11-19 16:28:05 +01:00
parent 0d50cff2b5
commit cf9088286d

View file

@ -203,11 +203,7 @@ fn escape_text(text: &str) -> String {
fn format_tag(tag: &Option<Tag>) -> String { fn format_tag(tag: &Option<Tag>) -> String {
if let Some(tag) = tag { if let Some(tag) = tag {
let ns = match tag.handle.as_str() { format!(" <{}{}>", tag.handle, tag.suffix)
"!!" => "tag:yaml.org,2002:", // Wrong if this ns is overridden
other => other,
};
format!(" <{}{}>", ns, tag.suffix)
} else { } else {
"".into() "".into()
} }