mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07: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:
@@ -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};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user