ソースを参照

Suppress warnings about using AsciiExt

Markus Westerlind 8 年 前
コミット
76129753a7
3 ファイル変更4 行追加0 行削除
  1. 1 0
      idna/src/punycode.rs
  2. 1 0
      idna/src/uts46.rs
  3. 2 0
      src/parser.rs

+ 1 - 0
idna/src/punycode.rs

@@ -15,6 +15,7 @@
 
 
 use std::u32;
 use std::u32;
 use std::char;
 use std::char;
+#[allow(unused_imports, deprecated)]
 use std::ascii::AsciiExt;
 use std::ascii::AsciiExt;
 
 
 // Bootstring parameters for Punycode
 // Bootstring parameters for Punycode

+ 1 - 0
idna/src/uts46.rs

@@ -11,6 +11,7 @@
 
 
 use self::Mapping::*;
 use self::Mapping::*;
 use punycode;
 use punycode;
+#[allow(unused_imports, deprecated)]
 use std::ascii::AsciiExt;
 use std::ascii::AsciiExt;
 use std::cmp::Ordering::{Equal, Less, Greater};
 use std::cmp::Ordering::{Equal, Less, Greater};
 use unicode_bidi::{BidiClass, bidi_class};
 use unicode_bidi::{BidiClass, bidi_class};

+ 2 - 0
src/parser.rs

@@ -6,7 +6,9 @@
 // option. This file may not be copied, modified, or distributed
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 // except according to those terms.
 
 
+#[allow(unused_imports, deprecated)]
 use std::ascii::AsciiExt;
 use std::ascii::AsciiExt;
+
 use std::error::Error;
 use std::error::Error;
 use std::fmt::{self, Formatter, Write};
 use std::fmt::{self, Formatter, Write};
 use std::str;
 use std::str;