Skip to content

Commit ebdc53f

Browse files
committed
fix: use to_owned() instead of to_string() for implicit clone
Replace implicit clone via to_string() with explicit to_owned() to satisfy clippy's implicit_clone lint.
1 parent c2f965e commit ebdc53f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/pgrep/src/process_matcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fn try_get_pattern_from(matches: &ArgMatches) -> UResult<String> {
209209
pattern
210210
};
211211

212-
Ok(pattern.to_string())
212+
Ok(pattern.to_owned())
213213
}
214214

215215
fn any_matches<T: Eq + Hash>(optional_ids: &Option<HashSet<T>>, id: T) -> bool {

0 commit comments

Comments
 (0)