fixup: clippy

This commit is contained in:
Graham Christensen 2019-01-29 22:10:57 -05:00
parent 99cc0ce394
commit 3f2b351901
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -117,7 +117,7 @@ pub struct RebuildTagger {
impl Default for RebuildTagger { impl Default for RebuildTagger {
fn default() -> RebuildTagger { fn default() -> RebuildTagger {
let mut t = RebuildTagger { RebuildTagger {
possible: vec![ possible: vec![
String::from("10.rebuild-darwin: 0"), String::from("10.rebuild-darwin: 0"),
String::from("10.rebuild-darwin: 1-10"), String::from("10.rebuild-darwin: 1-10"),
@ -139,9 +139,7 @@ impl Default for RebuildTagger {
String::from("10.rebuild-linux: 5,001+"), String::from("10.rebuild-linux: 5,001+"),
], ],
selected: vec![], selected: vec![],
}; }
t
} }
} }
@ -359,7 +357,7 @@ mod tests {
impl From<PackageArchSrc> for Vec<PackageArch> { impl From<PackageArchSrc> for Vec<PackageArch> {
fn from(src: PackageArchSrc) -> Vec<PackageArch> { fn from(src: PackageArchSrc) -> Vec<PackageArch> {
let mut darwin: Vec<PackageArch> = (0..src.darwin) let darwin: Vec<PackageArch> = (0..src.darwin)
.into_iter() .into_iter()
.map(|_| PackageArch { .map(|_| PackageArch {
package: String::from("bogus :)"), package: String::from("bogus :)"),