Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

rustfmt xtask/src/i18n_coverage.rs (Format red on main since #663 + #700) (#798)

Tanish Manku6103da5278e5
diff --git a/xtask/src/i18n_coverage.rs b/xtask/src/i18n_coverage.rs
index a83b28b97..6d014c495 100644
--- a/xtask/src/i18n_coverage.rs
+++ b/xtask/src/i18n_coverage.rs
@@ -559,7 +559,9 @@ mod tests {
fn source_key_set_is_covered_by_complete_catalogs() {
let root = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap_or(Path::new("."));
let keys = source_keys(root).unwrap_or_default();
- for (code, path) in [("ja", "ja.tsv"), ("zh-hant", "zh-hant.tsv"), ("es", "es.tsv"), ("ru", "ru.tsv"), ("cs", "cs.tsv"), ("de", "de.tsv"), ("pt-br", "pt-br.tsv")] {
+ for (code, path) in
+ [("ja", "ja.tsv"), ("zh-hant", "zh-hant.tsv"), ("es", "es.tsv"), ("ru", "ru.tsv"), ("cs", "cs.tsv"), ("de", "de.tsv"), ("pt-br", "pt-br.tsv")]
+ {
let catalog_path = root.join("crates/ui-egui/src/i18n").join(path);
let text = fs::read_to_string(&catalog_path).unwrap_or_default();
let translations = parse_catalog(&catalog_path, &text).unwrap_or_default();