Use Rust 1.75 toolchain (#9437)

This commit is contained in:
Micha Reiser 2024-01-08 18:03:16 +01:00 committed by GitHub
parent ba71772d93
commit 94968fedd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 63 additions and 30 deletions

View file

@ -160,6 +160,10 @@ impl ImportMap {
pub fn extend(&mut self, other: Self) {
self.module_to_imports.extend(other.module_to_imports);
}
pub fn iter(&self) -> std::collections::hash_map::Iter<String, Vec<ModuleImport>> {
self.module_to_imports.iter()
}
}
impl<'a> IntoIterator for &'a ImportMap {
@ -167,6 +171,6 @@ impl<'a> IntoIterator for &'a ImportMap {
type Item = (&'a String, &'a Vec<ModuleImport>);
fn into_iter(self) -> Self::IntoIter {
self.module_to_imports.iter()
self.iter()
}
}