Skip to content

Commit

Permalink
chore: bump rust-toolchain version to 1.75.0 (denoland#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Feb 5, 2024
1 parent 2410228 commit 8e85836
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
8 changes: 2 additions & 6 deletions core/modules/module_map_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@ impl<T> ModuleNameTypeMap<T> {
ModuleName: std::borrow::Borrow<Q>,
Q: std::cmp::Eq + std::hash::Hash + ?Sized,
{
let Some(index) = self.map_index(ty) else {
return None;
};
let Some(map) = self.submaps.get(index) else {
return None;
};
let index = self.map_index(ty)?;
let map = self.submaps.get(index)?;
map.get(name)
}

Expand Down
4 changes: 1 addition & 3 deletions core/web_timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ impl<'a, T> Iterator for WebTimersIteratorImpl<'a, T> {
type Item = (u64, bool);
fn next(&mut self) -> Option<Self::Item> {
loop {
let Some(item) = self.timers.next() else {
return None;
};
let item = self.timers.next()?;
if self.data.contains_key(&item.1) {
return Some((item.1, !matches!(item.2, TimerType::Once)));
}
Expand Down
2 changes: 1 addition & 1 deletion ops/op2/dispatch_fast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ pub(crate) fn generate_dispatch_fast(
Option<(TokenStream, TokenStream, TokenStream)>,
V8SignatureMappingError,
> {
if let Some(alternative) = config.fast_alternatives.get(0) {
if let Some(alternative) = config.fast_alternatives.first() {
// TODO(mmastrac): we should validate the alternatives. For now we just assume the caller knows what
// they are doing.
let alternative =
Expand Down
2 changes: 1 addition & 1 deletion ops/op2/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ fn parse_attributes(
return Err(AttributeError::TooManyAttributes);
}
Ok(Attributes {
primary: Some(*attrs.get(0).unwrap()),
primary: Some(*attrs.first().unwrap()),
})
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.74.1"
channel = "1.75.0"
components = ["rustfmt", "clippy"]

0 comments on commit 8e85836

Please sign in to comment.