Remove stale tag handling code.
This commit is contained in:
parent
92e20e6eb4
commit
ffed282a9f
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue