Skip to content

Commit

Permalink
Make tidy::version::Version copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi committed May 2, 2019
1 parent 4bcc828 commit 201f14b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/tools/tidy/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ fn format_features<'a>(features: &'a Features, family: &'a str) -> impl Iterator
name,
family,
feature.level,
feature.since.as_ref().map_or("None".to_owned(),
|since| since.to_string()))
feature.since.map_or("None".to_owned(),
|since| since.to_string()))
})
}

Expand Down Expand Up @@ -265,7 +265,7 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
name,
);
}
prev_since = since.clone();
prev_since = since;
}

let issue_str = parts.next().unwrap().trim();
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tidy/src/features/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::str::FromStr;
use std::num::ParseIntError;
use std::fmt;

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct Version {
parts: [u32; 3],
}
Expand Down

0 comments on commit 201f14b

Please sign in to comment.