aboutsummaryrefslogtreecommitdiff
path: root/src/map.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2019-05-08 17:37:38 -0700
committerEric Huss <eric@huss.org>2019-05-08 17:37:38 -0700
commit6c162e6562c3e432bf04c82a3d1d789d80761a86 (patch)
tree5b8b428c5408cb138f5a3674ad33ba8dcb71b460 /src/map.rs
parent1b016589133e48d34dd5ae1b440581ded4cb4cdb (diff)
downloadmilf-rs-6c162e6562c3e432bf04c82a3d1d789d80761a86.tar.gz
milf-rs-6c162e6562c3e432bf04c82a3d1d789d80761a86.zip
2018 edition idioms.
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map.rs b/src/map.rs
index 3a2473a..054961d 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -140,7 +140,7 @@ impl Map<String, Value> {
/// Gets the given key's corresponding entry in the map for in-place
/// manipulation.
- pub fn entry<S>(&mut self, key: S) -> Entry
+ pub fn entry<S>(&mut self, key: S) -> Entry<'_>
where
S: Into<String>,
{
@@ -169,7 +169,7 @@ impl Map<String, Value> {
/// Gets an iterator over the entries of the map.
#[inline]
- pub fn iter(&self) -> Iter {
+ pub fn iter(&self) -> Iter<'_> {
Iter {
iter: self.map.iter(),
}
@@ -177,7 +177,7 @@ impl Map<String, Value> {
/// Gets a mutable iterator over the entries of the map.
#[inline]
- pub fn iter_mut(&mut self) -> IterMut {
+ pub fn iter_mut(&mut self) -> IterMut<'_> {
IterMut {
iter: self.map.iter_mut(),
}
@@ -185,7 +185,7 @@ impl Map<String, Value> {
/// Gets an iterator over the keys of the map.
#[inline]
- pub fn keys(&self) -> Keys {
+ pub fn keys(&self) -> Keys<'_> {
Keys {
iter: self.map.keys(),
}
@@ -193,7 +193,7 @@ impl Map<String, Value> {
/// Gets an iterator over the values of the map.
#[inline]
- pub fn values(&self) -> Values {
+ pub fn values(&self) -> Values<'_> {
Values {
iter: self.map.values(),
}
@@ -253,7 +253,7 @@ where
impl Debug for Map<String, Value> {
#[inline]
- fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+ fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
self.map.fmt(formatter)
}
}
@@ -285,7 +285,7 @@ impl<'de> de::Deserialize<'de> for Map<String, Value> {
impl<'de> de::Visitor<'de> for Visitor {
type Value = Map<String, Value>;
- fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+ fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
formatter.write_str("a map")
}