Skip to content

Commit

Permalink
Fix alphabetical order in from_xml_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecot committed Jul 9, 2023
1 parent 98fd9f7 commit 5e1a74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/readers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,14 @@ impl crate::FileFormat {
return Ok(Self::ScalableVectorGraphics);
} else if contains(&buffer, b"<soap") {
return Ok(Self::SimpleObjectAccessProtocol);
} else if contains(&buffer, b"<TrainingCenterDatabase") {
return Ok(Self::TrainingCenterXml);
} else if contains(&buffer, b"<tt xmlns=\"http://www.w3.org/ns/ttml\"") {
return Ok(Self::TimedTextMarkupLanguage);
} else if contains(&buffer, b"<map") {
return Ok(Self::TiledMapXml);
} else if contains(&buffer, b"<tileset") {
return Ok(Self::TiledTilesetXml);
} else if contains(&buffer, b"<TrainingCenterDatabase") {
return Ok(Self::TrainingCenterXml);
} else if contains(&buffer, b"<USFSubtitles") {
return Ok(Self::UniversalSubtitleFormat);
} else if contains(&buffer, b"<xliff") {
Expand Down

0 comments on commit 5e1a74b

Please sign in to comment.