Skip to content

Commit

Permalink
Fix resolver-tests crate compile failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Gjengset committed Nov 26, 2020
1 parent e1018d0 commit 8ccaf4f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/resolver-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(clippy::many_single_char_names)]
#![allow(clippy::needless_range_loop)] // false positives

use std::borrow::Cow;
use std::cell::RefCell;
use std::cmp::PartialEq;
use std::cmp::{max, min};
Expand Down Expand Up @@ -125,6 +126,14 @@ pub fn resolve_with_config_raw(
used: HashSet<PackageId>,
};
impl<'a> Registry for MyRegistry<'a> {
fn prefetch(
&mut self,
_deps: &mut dyn ExactSizeIterator<Item = Cow<'_, Dependency>>,
) -> CargoResult<()> {
// Doing nothing is a valid way to prefetch.
Ok(())
}

fn query(
&mut self,
dep: &Dependency,
Expand Down

0 comments on commit 8ccaf4f

Please sign in to comment.