Skip to content

Commit aa66859

Browse files
cakebakersylvestre
authored andcommitted
cat: remove some unnecessary to_owned() calls
1 parent 79c90ff commit aa66859

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/uu/cat/src/cat.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,26 +229,26 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
229229
};
230230

231231
let show_nonprint = [
232-
options::SHOW_ALL.to_owned(),
233-
options::SHOW_NONPRINTING_ENDS.to_owned(),
234-
options::SHOW_NONPRINTING_TABS.to_owned(),
235-
options::SHOW_NONPRINTING.to_owned(),
232+
options::SHOW_ALL,
233+
options::SHOW_NONPRINTING_ENDS,
234+
options::SHOW_NONPRINTING_TABS,
235+
options::SHOW_NONPRINTING,
236236
]
237237
.iter()
238238
.any(|v| matches.get_flag(v));
239239

240240
let show_ends = [
241-
options::SHOW_ENDS.to_owned(),
242-
options::SHOW_ALL.to_owned(),
243-
options::SHOW_NONPRINTING_ENDS.to_owned(),
241+
options::SHOW_ENDS,
242+
options::SHOW_ALL,
243+
options::SHOW_NONPRINTING_ENDS,
244244
]
245245
.iter()
246246
.any(|v| matches.get_flag(v));
247247

248248
let show_tabs = [
249-
options::SHOW_ALL.to_owned(),
250-
options::SHOW_TABS.to_owned(),
251-
options::SHOW_NONPRINTING_TABS.to_owned(),
249+
options::SHOW_ALL,
250+
options::SHOW_TABS,
251+
options::SHOW_NONPRINTING_TABS,
252252
]
253253
.iter()
254254
.any(|v| matches.get_flag(v));

0 commit comments

Comments
 (0)