1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-14 19:16:17 +00:00

fix: remove deprecated 'std::ascii::AsciiExt'

This commit is contained in:
Roy Ivy III 2018-09-03 17:44:18 -05:00
parent cb7a926e9a
commit a66f7a7a53
5 changed files with 0 additions and 10 deletions

View file

@ -14,8 +14,6 @@ extern crate time;
#[macro_use]
extern crate uucore;
// XXX: remove when we no longer support 1.22.0
use std::ascii::AsciiExt;
use std::collections::HashSet;
use std::env;
use std::fs;

View file

@ -32,8 +32,6 @@ 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, stdin, BufRead, BufReader, Read};
use std::path::Path;

View file

@ -164,8 +164,6 @@ 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,8 +14,6 @@ extern crate getopts;
#[macro_use]
extern crate uucore;
#[allow(unused_imports)]
use std::ascii::AsciiExt;
use std::fs::{metadata, File, OpenOptions};
use std::io::Result;
use std::path::Path;

View file

@ -16,8 +16,6 @@ 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};
use std::path::Path;