diff --git a/actix-settings/CHANGES.md b/actix-settings/CHANGES.md index 904eeb37f..adf757f21 100644 --- a/actix-settings/CHANGES.md +++ b/actix-settings/CHANGES.md @@ -4,6 +4,7 @@ - Rename `AtError => Error`. - Remove `AtResult` type alias. +- Update `toml` dependency to `0.8`. - Minimum supported Rust version (MSRV) is now 1.68. ## 0.6.0 diff --git a/actix-settings/Cargo.toml b/actix-settings/Cargo.toml index 42c5099a4..5950dcb67 100644 --- a/actix-settings/Cargo.toml +++ b/actix-settings/Cargo.toml @@ -23,7 +23,7 @@ ioe = "0.5" once_cell = "1.13" regex = "1.5.5" serde = { version = "1", features = ["derive"] } -toml = "0.5" +toml = "0.8" [dev-dependencies] env_logger = "0.10" diff --git a/actix-settings/src/lib.rs b/actix-settings/src/lib.rs index a0d0e3024..3422549ff 100644 --- a/actix-settings/src/lib.rs +++ b/actix-settings/src/lib.rs @@ -169,7 +169,8 @@ where /// Writes the default TOML template to a new file, located at `filepath`. /// /// # 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. pub fn write_toml_file

(filepath: P) -> AsResult<()> where diff --git a/actix-settings/src/parse.rs b/actix-settings/src/parse.rs index e88a64a3c..b4433dd93 100644 --- a/actix-settings/src/parse.rs +++ b/actix-settings/src/parse.rs @@ -2,7 +2,7 @@ use std::{path::PathBuf, str::FromStr}; use crate::Error; -/// A specialized `FromStr` trait that returns [`AtError`] errors +/// A specialized `FromStr` trait that returns [`Error`] errors pub trait Parse: Sized { /// Parse `Self` from `string`. fn parse(string: &str) -> Result;