mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +01:00
Update toml requirement from 0.5 to 0.8 (#335)
* Update toml requirement from 0.5 to 0.8 Updates the requirements on [toml](https://github.com/toml-rs/toml) to permit the latest version. - [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.5.0...toml-v0.8.0) --- updated-dependencies: - dependency-name: toml dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * docs(settings): update changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
d921417726
commit
257871ca7a
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- Rename `AtError => Error`.
|
- Rename `AtError => Error`.
|
||||||
- Remove `AtResult` type alias.
|
- Remove `AtResult` type alias.
|
||||||
|
- Update `toml` dependency to `0.8`.
|
||||||
- Minimum supported Rust version (MSRV) is now 1.68.
|
- Minimum supported Rust version (MSRV) is now 1.68.
|
||||||
|
|
||||||
## 0.6.0
|
## 0.6.0
|
||||||
|
@ -23,7 +23,7 @@ ioe = "0.5"
|
|||||||
once_cell = "1.13"
|
once_cell = "1.13"
|
||||||
regex = "1.5.5"
|
regex = "1.5.5"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
toml = "0.5"
|
toml = "0.8"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.10"
|
env_logger = "0.10"
|
||||||
|
@ -169,7 +169,8 @@ where
|
|||||||
/// Writes the default TOML template to a new file, located at `filepath`.
|
/// Writes the default TOML template to a new file, located at `filepath`.
|
||||||
///
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
/// Returns a [`FileExists`](crate::AtError::FileExists) error if a file already exists at that
|
///
|
||||||
|
/// Returns a [`FileExists`](crate::Error::FileExists) error if a file already exists at that
|
||||||
/// location.
|
/// location.
|
||||||
pub fn write_toml_file<P>(filepath: P) -> AsResult<()>
|
pub fn write_toml_file<P>(filepath: P) -> AsResult<()>
|
||||||
where
|
where
|
||||||
|
@ -2,7 +2,7 @@ use std::{path::PathBuf, str::FromStr};
|
|||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
/// A specialized `FromStr` trait that returns [`AtError`] errors
|
/// A specialized `FromStr` trait that returns [`Error`] errors
|
||||||
pub trait Parse: Sized {
|
pub trait Parse: Sized {
|
||||||
/// Parse `Self` from `string`.
|
/// Parse `Self` from `string`.
|
||||||
fn parse(string: &str) -> Result<Self, Error>;
|
fn parse(string: &str) -> Result<Self, Error>;
|
||||||
|
Loading…
Reference in New Issue
Block a user