Skip to content

Commit

Permalink
🐛 Fix double writing of airport
Browse files Browse the repository at this point in the history
The <departure> and <destination> xml tags would get two children
named airport, when only one is needed. This didn't affect
functionality, it was just unnecessary work.
  • Loading branch information
nico-castell committed Feb 8, 2023
1 parent 7f54e4c commit 36abfc3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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)."
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ fn write_airport_details<W: Write>(
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(())
}

Expand Down

0 comments on commit 36abfc3

Please sign in to comment.