From 13c7bcd04d928e480352f0ee5b5b1e72e846c887 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 25 Jul 2022 13:31:13 +0300 Subject: [PATCH] bump msrv --- .github/workflows/ci.yml | 2 +- Cargo.lock | 3 +-- Cargo.toml | 8 ++------ src/core.rs | 2 +- src/core/low/trim.rs | 1 - src/core/prim/bool.rs | 1 - src/core/prim/number.rs | 1 - src/core/tuple.rs | 1 - src/core/vec.rs | 1 - 9 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8536c9..c946c6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - macos-latest - windows-latest rust: - - 1.51.0 # msrv + - 1.59.0 # msrv - stable - beta - nightly diff --git a/Cargo.lock b/Cargo.lock index c6358cd..0356f2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,7 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 - [[package]] name = "estring" version = "0.1.2" + diff --git a/Cargo.toml b/Cargo.toml index 5060ccb..1850fbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,18 +2,14 @@ name = "estring" description = "A simple way to parse a string using type annotations" version = "0.1.2" -edition = "2018" +edition = "2021" authors = ["Dmitriy Pleshevskiy "] readme = "README.md" repository = "https://github.com/pleshevskiy/estring" license = "MIT" keywords = ["parsing", "type", "annotations", "customizable"] categories = ["data-structures", "parsing"] - -# rust-version = "1.51.0" # The first version of Cargo that supports this field is 1.56.0 - -[package.metadata] -msrv = "1.51.0" +rust-version = "1.59.0" [package.metadata.docs.rs] all-features = true diff --git a/src/core.rs b/src/core.rs index 672038a..79c991c 100644 --- a/src/core.rs +++ b/src/core.rs @@ -22,7 +22,7 @@ pub mod low; pub use low::*; use crate::ParseError; -use std::convert::{Infallible, TryFrom}; +use std::convert::Infallible; /// Wrapper under String type. #[derive(Debug, Default, PartialEq, Eq, Clone)] diff --git a/src/core/low/trim.rs b/src/core/low/trim.rs index b1f2fa8..068610f 100644 --- a/src/core/low/trim.rs +++ b/src/core/low/trim.rs @@ -1,5 +1,4 @@ use crate::core::EString; -use std::convert::TryFrom; //===========================================================================// // TRIM // diff --git a/src/core/prim/bool.rs b/src/core/prim/bool.rs index f0aacc9..c67be8e 100644 --- a/src/core/prim/bool.rs +++ b/src/core/prim/bool.rs @@ -1,5 +1,4 @@ use crate::core::EString; -use std::convert::TryFrom; impl TryFrom for bool { type Error = (); diff --git a/src/core/prim/number.rs b/src/core/prim/number.rs index 3b93389..1462cdc 100644 --- a/src/core/prim/number.rs +++ b/src/core/prim/number.rs @@ -1,5 +1,4 @@ use crate::core::EString; -use std::convert::TryFrom; #[doc(hidden)] macro_rules! from_env_string_numbers_impl { diff --git a/src/core/tuple.rs b/src/core/tuple.rs index 0e993b5..519ee51 100644 --- a/src/core/tuple.rs +++ b/src/core/tuple.rs @@ -4,7 +4,6 @@ //! use crate::core::EString; -use std::convert::TryFrom; use std::fmt::Write; /// The error type for operations interacting with parsing tuples. Possibly returned from diff --git a/src/core/vec.rs b/src/core/vec.rs index 3077379..f2a0f49 100644 --- a/src/core/vec.rs +++ b/src/core/vec.rs @@ -4,7 +4,6 @@ //! use crate::core::EString; -use std::convert::TryFrom; use std::fmt::Write; /// Wrapper for ``Vec`` to split string by a separator (`SEP`).