Skip to content
Myr

Do not use .clone()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent a0ca460 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/main.rs+2 added-1 removed
174 unmodified lines
175176 let path_separator = matches177 .value_of("path-separator")178 .map_or_else(filesystem::default_path_separator, |s| Some(s.to_owned()));179 if let Some(sep) = path_separator.clone() {179180 if let Some(ref sep) = path_separator {181 if sep.len() > 1 {182 return Err(anyhow!(183 "A path separator must be exactly one byte, but \184 the given separator is {} bytes: '{}'.\n\
303 unmodified lines