mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix some warnings new in Rust Nightly
This commit is contained in:
parent
f2e7b4ec8c
commit
94b19beefb
8 changed files with 10 additions and 14 deletions
|
@ -1702,7 +1702,7 @@ impl<'a, K, V> Iterator for Keys<'a, K, V> {
|
|||
type Item = &'a K;
|
||||
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<(&'a K)> {
|
||||
fn next(&mut self) -> Option<&'a K> {
|
||||
self.inner.next().map(|(k, _)| k)
|
||||
}
|
||||
#[inline]
|
||||
|
@ -1721,7 +1721,7 @@ impl<'a, K, V> Iterator for Values<'a, K, V> {
|
|||
type Item = &'a V;
|
||||
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<(&'a V)> {
|
||||
fn next(&mut self) -> Option<&'a V> {
|
||||
self.inner.next().map(|(_, v)| v)
|
||||
}
|
||||
#[inline]
|
||||
|
@ -1739,7 +1739,7 @@ impl<'a, K, V> Iterator for ValuesMut<'a, K, V> {
|
|||
type Item = &'a mut V;
|
||||
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<(&'a mut V)> {
|
||||
fn next(&mut self) -> Option<&'a mut V> {
|
||||
self.inner.next().map(|(_, v)| v)
|
||||
}
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue