Skip to content

Commit 52c83b1

Browse files
Lokathorzesterer
authored andcommitted
make the where-clause order match the generics order
1 parent 3c723bf commit 52c83b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ where
398398
pub fn sources<Id, S, I>(iter: I) -> impl Cache<Id>
399399
where
400400
Id: fmt::Display + Hash + PartialEq + Eq + Clone + 'static,
401-
I: IntoIterator<Item = (Id, S)>,
402401
S: AsRef<str>,
402+
I: IntoIterator<Item = (Id, S)>,
403403
{
404404
FnCache::new((move |id| Err(format!("Failed to fetch source '{}'", id))) as fn(&_) -> _)
405405
.with_sources(

0 commit comments

Comments
 (0)