Skip to content

Commit da4330b

Browse files
committed
df: migrate OptionsError to thiserror
Closes #7536
1 parent 36e7b28 commit da4330b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/uu/df/src/df.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ enum OptionsError {
126126
#[error("option --output: field {0} used more than once")]
127127
ColumnError(ColumnError),
128128

129-
#[error("{}", .0.iter().map(|t| format!("file system type {} both selected and excluded", t.quote())).collect::<Vec<String>>().join(format!("\n{}: ", uucore::util_name()).as_str()))]
129+
#[error("{}", .0.iter()
130+
.map(|t| format!("file system type {} both selected and excluded", t.quote()))
131+
.collect::<Vec<_>>()
132+
.join(format!("\n{}: ", uucore::util_name()).as_str()))]
130133
FilesystemTypeBothSelectedAndExcluded(Vec<String>),
131134
}
132135

0 commit comments

Comments
 (0)