We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c723bf commit 52c83b1Copy full SHA for 52c83b1
src/source.rs
@@ -398,8 +398,8 @@ where
398
pub fn sources<Id, S, I>(iter: I) -> impl Cache<Id>
399
where
400
Id: fmt::Display + Hash + PartialEq + Eq + Clone + 'static,
401
- I: IntoIterator<Item = (Id, S)>,
402
S: AsRef<str>,
+ I: IntoIterator<Item = (Id, S)>,
403
{
404
FnCache::new((move |id| Err(format!("Failed to fetch source '{}'", id))) as fn(&_) -> _)
405
.with_sources(
0 commit comments