diff --git a/.travis.yml b/.travis.yml index 0e8bf4bdf6a..b862b3c5e46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ cache: cargo dist: trusty +sudo: required + addons: apt: sources: diff --git a/wayland-scanner/src/util.rs b/wayland-scanner/src/util.rs index 6cf70754e73..5e65e267cdd 100644 --- a/wayland-scanner/src/util.rs +++ b/wayland-scanner/src/util.rs @@ -1,3 +1,6 @@ +#[allow(unused_imports)] +use std::ascii::AsciiExt; + pub fn is_keyword(txt: &str) -> bool { match txt { "abstract" | "alignof" | "as" | "become" | "box" | "break" | "const" | "continue" | "crate"