From bce8b14bbda407ca0f591db1f9f473e9702d2cf9 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Thu, 14 Nov 2024 00:05:12 +0100 Subject: [PATCH] Remove deprecated `Status::new` constructor method (#121) It has been deprecated for a few versions now and hinders the implementation of v15. [breaking-change] --- CHANGELOG.md | 1 + src/status.rs | 27 --------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a805013..31f71f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Possible log types: ### Unreleased - [changed] Require at least Rust 1.75 +- [changed] Remove deprecated `Status::new` constructor method ### V0.9.0 (2023-05-07) diff --git a/src/status.rs b/src/status.rs index 03a179a..46ad91a 100644 --- a/src/status.rs +++ b/src/status.rs @@ -278,33 +278,6 @@ pub struct Status { pub extensions: Extensions, } -impl Status { - /// Create a new Status object with only the absolutely required fields. - #[deprecated( - since = "0.5.0", - note = "Please use the `StatusBuilder` or a struct expression instead" - )] - pub fn new>( - space: S, - logo: S, - url: S, - location: Location, - contact: Contact, - issue_report_channels: Vec, - ) -> Status { - Status { - api: Some("0.13".into()), - space: space.into(), - logo: logo.into(), - url: url.into(), - location, - contact, - issue_report_channels, - ..Default::default() - } - } -} - #[derive(Default, Debug, Copy, Clone, Eq, PartialEq)] enum StatusBuilderVersion { #[default]