From 36abfc3421532d9f357a14283f2b35729e46ae4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Castell=C3=A1n?= Date: Wed, 8 Feb 2023 19:07:52 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20double=20writing=20of=20ai?= =?UTF-8?q?rport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The and xml tags would get two children named airport, when only one is needed. This didn't affect functionality, it was just unnecessary work. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6af257a..03b194a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "kml_to_fgfp" -version = "0.3.0" +version = "0.3.1" dependencies = [ "xml-rs", ] diff --git a/Cargo.toml b/Cargo.toml index c9e8b1f..352d4e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kml_to_fgfp" -version = "0.3.0" +version = "0.3.1" edition = "2021" license = "MIT" description = "A tool to convert Google Earth .kml files into FlightGear flight plans (.fgfp)." diff --git a/src/lib.rs b/src/lib.rs index 18d3b0a..a3471f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -108,10 +108,6 @@ fn write_airport_details( write_event(writer, EventType::ClosingElement, "runway")?; } - write_event(writer, EventType::OpeningElement, "airport type=string")?; - write_event(writer, EventType::Content, ident)?; - write_event(writer, EventType::ClosingElement, "airport")?; - Ok(()) }