mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (into_iter => iter)
This commit is contained in:
parent
d343d533ba
commit
33e5d8c813
1 changed files with 3 additions and 3 deletions
|
@ -504,7 +504,7 @@ impl Stater {
|
|||
Err(_) => return None,
|
||||
};
|
||||
if let Some(ref mount_list) = self.mount_list {
|
||||
for root in mount_list.into_iter() {
|
||||
for root in mount_list.iter() {
|
||||
if path.starts_with(root) {
|
||||
return Some(root.clone());
|
||||
}
|
||||
|
@ -538,7 +538,7 @@ impl Stater {
|
|||
&self.default_dev_tokens
|
||||
};
|
||||
|
||||
for t in tokens.into_iter() {
|
||||
for t in tokens.iter() {
|
||||
match *t {
|
||||
Token::Char(c) => print!("{}", c),
|
||||
Token::Directive {
|
||||
|
@ -747,7 +747,7 @@ impl Stater {
|
|||
Ok(meta) => {
|
||||
let tokens = &self.default_tokens;
|
||||
|
||||
for t in tokens.into_iter() {
|
||||
for t in tokens.iter() {
|
||||
match *t {
|
||||
Token::Char(c) => print!("{}", c),
|
||||
Token::Directive {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue