fixup: clippy
This commit is contained in:
parent
99cc0ce394
commit
3f2b351901
1 changed files with 3 additions and 5 deletions
|
@ -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 :)"),
|
||||||
|
|
Loading…
Reference in a new issue