1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #1131 from bmusin/remove_some_warns

refactor: remove import of AsciiExt
This commit is contained in:
Alex Lyon 2018-01-08 00:49:40 -08:00 committed by GitHub
commit 72b4629916
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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