From b93fde6ebc59272c1fa210b9a5d52f74cf62669a Mon Sep 17 00:00:00 2001 From: Sam Rijs Date: Sat, 17 Feb 2018 00:28:11 +1100 Subject: [PATCH] fix tests --- src/engine/machines/analyzer.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/engine/machines/analyzer.rs b/src/engine/machines/analyzer.rs index 4628750..cc2dd3d 100644 --- a/src/engine/machines/analyzer.rs +++ b/src/engine/machines/analyzer.rs @@ -65,8 +65,8 @@ mod tests { let mut analyzer = DependencyAnalyzer::new(&deps); analyzer.process(vec![ - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), yanked: false }, - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1".parse().unwrap(), yanked: false } + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), deps: Default::default(), yanked: false }, + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1".parse().unwrap(), deps: Default::default(), yanked: false } ]); let analyzed = analyzer.finalize(); @@ -82,9 +82,9 @@ mod tests { let mut analyzer = DependencyAnalyzer::new(&deps); analyzer.process(vec![ - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), yanked: false }, - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1".parse().unwrap(), yanked: false }, - CrateRelease { name: "hyper".parse().unwrap(), version: "0.11.0".parse().unwrap(), yanked: false } + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), deps: Default::default(), yanked: false }, + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1".parse().unwrap(), deps: Default::default(), yanked: false }, + CrateRelease { name: "hyper".parse().unwrap(), version: "0.11.0".parse().unwrap(), deps: Default::default(), yanked: false } ]); let analyzed = analyzer.finalize(); @@ -100,8 +100,8 @@ mod tests { let mut analyzer = DependencyAnalyzer::new(&deps); analyzer.process(vec![ - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), yanked: false }, - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1".parse().unwrap(), yanked: true }, + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), deps: Default::default(), yanked: false }, + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1".parse().unwrap(), deps: Default::default(), yanked: true }, ]); let analyzed = analyzer.finalize(); @@ -117,8 +117,8 @@ mod tests { let mut analyzer = DependencyAnalyzer::new(&deps); analyzer.process(vec![ - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), yanked: false }, - CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1-alpha".parse().unwrap(), yanked: false }, + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.0".parse().unwrap(), deps: Default::default(), yanked: false }, + CrateRelease { name: "hyper".parse().unwrap(), version: "0.10.1-alpha".parse().unwrap(), deps: Default::default(), yanked: false }, ]); let analyzed = analyzer.finalize();