Patchwork D3014: rust-hglib: silence unused import of AsciiExt

login
register
mail settings
Submitter phabricator
Date April 1, 2018, 8:42 p.m.
Message ID <differential-rev-PHID-DREV-xmil5fceu2wab45vmfc7-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30127/
State Superseded
Headers show

Comments

phabricator - April 1, 2018, 8:42 p.m.
joerg.sonnenberger created this revision.
Herald added subscribers: mercurial-devel, kevincox, durin42.
Herald added a reviewer: hg-reviewers.

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

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3014

AFFECTED FILES
  rust/hglib/src/connection.rs

CHANGE DETAILS




To: joerg.sonnenberger, #hg-reviewers
Cc: durin42, kevincox, mercurial-devel
phabricator - April 1, 2018, 8:51 p.m.
joerg.sonnenberger abandoned this revision.
joerg.sonnenberger added a comment.


  Pilot error

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3014

To: joerg.sonnenberger, #hg-reviewers
Cc: durin42, kevincox, mercurial-devel

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;