lower msrv to 1.43

This commit is contained in:
Robin Appelman 2021-02-23 22:32:46 +01:00
commit a3178f9993
2 changed files with 18 additions and 3 deletions

View file

@ -31,3 +31,18 @@ jobs:
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test
msrv:
name: Check MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.43
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: check

View file

@ -510,7 +510,7 @@ impl<'de> Visitor<'de> for ValueVisitor {
where where
E: de::Error, E: de::Error,
{ {
Ok(Value::String(v.into())) Ok(Value::String(v.to_string()))
} }
fn visit_str<E>(self, v: &str) -> Result<Self::Value, E> fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
@ -668,7 +668,7 @@ impl<'de> Visitor<'de> for KeyVisitor {
where where
E: de::Error, E: de::Error,
{ {
Ok(Key::String(v.into())) Ok(Key::String(v.to_string()))
} }
fn visit_str<E>(self, v: &str) -> Result<Self::Value, E> fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>