Skip to content

Commit d0b50d5

Browse files
committed
fix cargo clippy lints
1 parent 413f8a8 commit d0b50d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ coverage on python code. Other TOML libraries for python I tried all failed to p
2020

2121
## Install
2222

23-
Requires `python>=3.9`, binaries are available from pypi for Linux, macOS and Windows,
23+
Requires `python>=3.9`, binaries are available from PyPI for Linux, macOS and Windows,
2424
see [here](https://pypi.org/project/rtoml/#files).
2525

2626
```bash

src/de.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<'py> PyDeserializer<'py> {
2929
}
3030
}
3131

32-
impl<'de, 'py> DeserializeSeed<'de> for PyDeserializer<'py> {
32+
impl<'de> DeserializeSeed<'de> for PyDeserializer<'_> {
3333
type Value = PyObject;
3434

3535
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>
@@ -40,7 +40,7 @@ impl<'de, 'py> DeserializeSeed<'de> for PyDeserializer<'py> {
4040
}
4141
}
4242

43-
impl<'de, 'py> Visitor<'de> for PyDeserializer<'py> {
43+
impl<'de> Visitor<'de> for PyDeserializer<'_> {
4444
type Value = PyObject;
4545

4646
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {

src/ser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ macro_rules! serde_err {
5151
};
5252
}
5353

54-
impl<'py> Serialize for SerializePyObject<'py> {
54+
impl Serialize for SerializePyObject<'_> {
5555
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
5656
where
5757
S: Serializer,

0 commit comments

Comments
 (0)