Skip to content

Commit

Permalink
fix: renamed V to VS in bench
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed May 29, 2022
1 parent 71fbe52 commit a1ea900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benches/large_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ use pubgrub::version::{NumberVersion, SemanticVersion};
use pubgrub::version_set::VersionSet;
use serde::de::Deserialize;

fn bench<'a, P: Package + Deserialize<'a>, V: VersionSet + Deserialize<'a>>(
fn bench<'a, P: Package + Deserialize<'a>, VS: VersionSet + Deserialize<'a>>(
b: &mut Bencher,
case: &'a str,
) where
<V as VersionSet>::V: Deserialize<'a>,
<VS as VersionSet>::V: Deserialize<'a>,
{
let dependency_provider: OfflineDependencyProvider<P, V> = ron::de::from_str(&case).unwrap();
let dependency_provider: OfflineDependencyProvider<P, VS> = ron::de::from_str(&case).unwrap();

b.iter(|| {
for p in dependency_provider.packages() {
Expand Down

0 comments on commit a1ea900

Please sign in to comment.