rust: Use 2018 eition

This edition has better syntax around scoping and `use`.
This commit is contained in:
Dorota Czaplejewicz
2022-12-21 12:17:22 +00:00
parent 38165ac039
commit 828279d03c
18 changed files with 78 additions and 77 deletions

View File

@ -208,7 +208,7 @@ fn translate_layout_names(layouts: &Vec<LayoutId>) -> Vec<OwnedTranslation> {
}
// Attempt to take all xkb names from gnome-desktop's xkb info.
let xkb_translator = ::locale::XkbInfo::new();
let xkb_translator = crate::locale::XkbInfo::new();
let translated_names = layouts.iter()
.map(|id| match id {