logs: Silence missing file warnings

This commit is contained in:
Dorota Czaplejewicz
2019-10-03 12:59:26 +00:00
parent 94aec87b5d
commit e14d411150
2 changed files with 61 additions and 40 deletions

View File

@ -3,13 +3,13 @@ extern crate xkbcommon;
use std::env;
use rs::data::{ load_layout_from_resource, LoadError };
use rs::data::{ Layout, LoadError };
use xkbcommon::xkb;
fn check_layout(name: &str) {
let layout = load_layout_from_resource(name)
let layout = Layout::from_resource(name)
.and_then(|layout| layout.build().map_err(LoadError::BadKeyMap))
.expect("layout broken");