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:
commit
72b4629916
4 changed files with 5 additions and 0 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue