1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

add #[allow(unused_imports)] to std::ascii::AsciiExt

explicit import of std::ascii::AsciiExt is deprecated since 1.23
This commit is contained in:
Bulat Musin 2018-01-08 11:09:34 +03:00
parent c21f01cd8a
commit cc66229f16
4 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,7 @@ use regex::Regex;
use sha1::Sha1; use sha1::Sha1;
use sha2::{Sha224, Sha256, Sha384, Sha512}; use sha2::{Sha224, Sha256, Sha384, Sha512};
use sha3::{Sha3_224, Sha3_256, Sha3_384, Sha3_512, Shake128, Shake256}; use sha3::{Sha3_224, Sha3_256, Sha3_384, Sha3_512, Shake128, Shake256};
#[allow(unused_imports)]
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
use std::fs::File; use std::fs::File;
use std::io::{self, BufRead, BufReader, Read, stdin}; use std::io::{self, BufRead, BufReader, Read, stdin};

View file

@ -155,6 +155,7 @@ pub trait Capitalize {
impl Capitalize for str { impl Capitalize for str {
fn capitalize(&self) -> String { fn capitalize(&self) -> String {
#[allow(unused_imports)]
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
self.char_indices().fold(String::with_capacity(self.len()), |mut acc, x| { self.char_indices().fold(String::with_capacity(self.len()), |mut acc, x| {
if x.0 != 0 { if x.0 != 0 {

View file

@ -14,6 +14,7 @@ extern crate getopts;
#[macro_use] #[macro_use]
extern crate uucore; extern crate uucore;
#[allow(unused_imports)]
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
use std::fs::{File, metadata, OpenOptions}; use std::fs::{File, metadata, OpenOptions};
use std::io::Result; use std::io::Result;

View file

@ -15,6 +15,8 @@ extern crate getopts;
extern crate uucore; extern crate uucore;
use getopts::{Matches, Options}; use getopts::{Matches, Options};
#[allow(unused_imports)]
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
use std::fs::File; use std::fs::File;
use std::io::{stdin, BufRead, BufReader, Read}; use std::io::{stdin, BufRead, BufReader, Read};