1
Fork 0

remove redundant clones (clippy::redundant_clone)

This commit is contained in:
Matthias Krüger 2020-12-24 10:16:06 +01:00
parent c34c015fe2
commit 6e852cc4ce
2 changed files with 3 additions and 3 deletions

View file

@ -328,8 +328,8 @@ struct SplitIntRange {
}
impl SplitIntRange {
fn new(r: IntRange) -> Self {
SplitIntRange { range: r.clone(), borders: Vec::new() }
fn new(range: IntRange) -> Self {
SplitIntRange { range, borders: Vec::new() }
}
/// Internal use