Patchwork [3,of,8] rust-hglib: silence unused import of AsciiExt

login
register
mail settings
Submitter Yuya Nishihara
Date April 1, 2018, 11:14 a.m.
Message ID <0502f8498e8da8f06081.1522581259@mimosa>
Download mbox | patch
Permalink /patch/30117/
State Accepted
Headers show

Comments

Yuya Nishihara - April 1, 2018, 11:14 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1522477819 -32400
#      Sat Mar 31 15:30:19 2018 +0900
# Node ID 0502f8498e8da8f0608181619d49d4a8f7ce9637
# Parent  65b2f119fd08c4ee12f271da6bb575875167fc99
rust-hglib: silence unused import of AsciiExt

https://users.rust-lang.org/t/psa-dealing-with-warning-unused-import-std-ascii-asciiext-in-today-s-nightly/13726

Patch

diff --git a/rust/hglib/src/connection.rs b/rust/hglib/src/connection.rs
--- a/rust/hglib/src/connection.rs
+++ b/rust/hglib/src/connection.rs
@@ -15,7 +15,9 @@ 
 //!     conn.read_hello().expect("failed to read server hello");
 //! ```
 
+#[allow(unused_imports)]
 use std::ascii::AsciiExt;
+
 use std::error::Error;
 use std::fmt::{self, Display};
 use std::io;