Skip to content

Commit 6421f85

Browse files
committed
fix a typo
1 parent a1a4ab3 commit 6421f85

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

examples/caching_dependency_provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<DP: DependencyProvider<M = String>> DependencyProvider for CachingDependenc
6666
ranges: &DP::VS,
6767
stats: &PackageResolutionStatistics,
6868
) -> Self::Priority {
69-
self.remote_dependencies.prioritize(package, ranges, statis)
69+
self.remote_dependencies.prioritize(package, ranges, stats)
7070
}
7171

7272
type Err = DP::Err;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
//! }
8888
//!
8989
//! type Priority = usize;
90-
//! fn prioritize(&self, package: &String, range: &SemVS, statis: &PackageResolutionStatistics) -> Self::Priority {
90+
//! fn prioritize(&self, package: &String, range: &SemVS, stats: &PackageResolutionStatistics) -> Self::Priority {
9191
//! unimplemented!()
9292
//! }
9393
//!

src/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl<P: Package, VS: VersionSet> DependencyProvider for OfflineDependencyProvide
102102
&self,
103103
package: &P,
104104
range: &VS,
105-
statis: &PackageResolutionStatistics,
105+
stats: &PackageResolutionStatistics,
106106
) -> Self::Priority {
107107
let version_count = self
108108
.dependencies
@@ -112,7 +112,7 @@ impl<P: Package, VS: VersionSet> DependencyProvider for OfflineDependencyProvide
112112
if version_count == 0 {
113113
return (u32::MAX, Reverse(0));
114114
}
115-
(statis.conflict_count(), Reverse(version_count as u32))
115+
(stats.conflict_count(), Reverse(version_count as u32))
116116
}
117117

118118
#[inline]

src/solver.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ pub fn resolve<DP: DependencyProvider>(
9797

9898
let Some(highest_priority_pkg) =
9999
state.partial_solution.pick_highest_priority_pkg(|p, r| {
100-
let statis = PackageResolutionStatistics::new(p, &state.conflict_count);
101-
dependency_provider.prioritize(&state.package_store[p], r, &statis)
100+
let stats = PackageResolutionStatistics::new(p, &state.conflict_count);
101+
dependency_provider.prioritize(&state.package_store[p], r, &stats)
102102
})
103103
else {
104104
return Ok(state
@@ -299,7 +299,7 @@ pub trait DependencyProvider {
299299
&self,
300300
package: &Self::P,
301301
range: &Self::VS,
302-
statis: &PackageResolutionStatistics,
302+
stats: &PackageResolutionStatistics,
303303
) -> Self::Priority;
304304
/// The type returned from `prioritize`. The resolver does not care what type this is
305305
/// as long as it can pick a largest one and clone it.

tests/proptest.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ impl<P: Package, VS: VersionSet> DependencyProvider for OldestVersionsDependency
5353
&self,
5454
package: &P,
5555
range: &VS,
56-
statis: &PackageResolutionStatistics,
56+
stats: &PackageResolutionStatistics,
5757
) -> Self::Priority {
58-
self.0.prioritize(package, range, statis)
58+
self.0.prioritize(package, range, stats)
5959
}
6060

6161
type Err = Infallible;
@@ -113,9 +113,9 @@ impl<DP: DependencyProvider> DependencyProvider for TimeoutDependencyProvider<DP
113113
&self,
114114
package: &DP::P,
115115
range: &DP::VS,
116-
statis: &PackageResolutionStatistics,
116+
stats: &PackageResolutionStatistics,
117117
) -> Self::Priority {
118-
self.dp.prioritize(package, range, statis)
118+
self.dp.prioritize(package, range, stats)
119119
}
120120

121121
type Err = DP::Err;

0 commit comments

Comments
 (0)