Skip to content

Commit 96f77c5

Browse files
committed
style: Make clippy happy
1 parent fcaab10 commit 96f77c5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl<'de> de::Deserializer<'de> for Value {
173173

174174
struct StrDeserializer<'a>(&'a str);
175175

176-
impl<'de, 'a> de::Deserializer<'de> for StrDeserializer<'a> {
176+
impl<'de> de::Deserializer<'de> for StrDeserializer<'_> {
177177
type Error = ConfigError;
178178

179179
#[inline]

src/ser.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl<'a> SeqSerializer<'a> {
271271
}
272272
}
273273

274-
impl<'a> ser::SerializeSeq for SeqSerializer<'a> {
274+
impl ser::SerializeSeq for SeqSerializer<'_> {
275275
type Ok = ();
276276
type Error = ConfigError;
277277

@@ -297,7 +297,7 @@ impl<'a> ser::SerializeSeq for SeqSerializer<'a> {
297297
}
298298
}
299299

300-
impl<'a> ser::SerializeTuple for SeqSerializer<'a> {
300+
impl ser::SerializeTuple for SeqSerializer<'_> {
301301
type Ok = ();
302302
type Error = ConfigError;
303303

@@ -313,7 +313,7 @@ impl<'a> ser::SerializeTuple for SeqSerializer<'a> {
313313
}
314314
}
315315

316-
impl<'a> ser::SerializeTupleStruct for SeqSerializer<'a> {
316+
impl ser::SerializeTupleStruct for SeqSerializer<'_> {
317317
type Ok = ();
318318
type Error = ConfigError;
319319

@@ -329,7 +329,7 @@ impl<'a> ser::SerializeTupleStruct for SeqSerializer<'a> {
329329
}
330330
}
331331

332-
impl<'a> ser::SerializeTupleVariant for SeqSerializer<'a> {
332+
impl ser::SerializeTupleVariant for SeqSerializer<'_> {
333333
type Ok = ();
334334
type Error = ConfigError;
335335

@@ -347,7 +347,7 @@ impl<'a> ser::SerializeTupleVariant for SeqSerializer<'a> {
347347
}
348348
}
349349

350-
impl<'a> ser::SerializeMap for &'a mut ConfigSerializer {
350+
impl ser::SerializeMap for &mut ConfigSerializer {
351351
type Ok = ();
352352
type Error = ConfigError;
353353

@@ -375,7 +375,7 @@ impl<'a> ser::SerializeMap for &'a mut ConfigSerializer {
375375
}
376376
}
377377

378-
impl<'a> ser::SerializeStruct for &'a mut ConfigSerializer {
378+
impl ser::SerializeStruct for &mut ConfigSerializer {
379379
type Ok = ();
380380
type Error = ConfigError;
381381

@@ -394,7 +394,7 @@ impl<'a> ser::SerializeStruct for &'a mut ConfigSerializer {
394394
}
395395
}
396396

397-
impl<'a> ser::SerializeStructVariant for &'a mut ConfigSerializer {
397+
impl ser::SerializeStructVariant for &mut ConfigSerializer {
398398
type Ok = ();
399399
type Error = ConfigError;
400400

tests/unsigned_int_hm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl From<Unsigned> for config::ValueKind {
2020
fn from(unsigned: Unsigned) -> Self {
2121
let mut properties = std::collections::HashMap::new();
2222
properties.insert(
23-
"unsigned".to_string(),
23+
"unsigned".to_owned(),
2424
config::Value::from(unsigned.unsigned),
2525
);
2626

0 commit comments

Comments
 (0)