Skip to content

Commit

Permalink
Remove deprecated Status::new constructor method
Browse files Browse the repository at this point in the history
It has been deprecated for a few versions now and hinders the
implementation of v15.

[breaking-change]
  • Loading branch information
dbrgn committed Nov 11, 2024
1 parent a76cef2 commit 0984310
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Possible log types:
### Unreleased

- [changed] Require at least Rust 1.75
- [changed] Require at least Rust 1.60
- [changed] Remove deprecated `Status::new` constructor method

### V0.9.0 (2023-05-07)

Expand Down
27 changes: 0 additions & 27 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S: Into<String>>(
space: S,
logo: S,
url: S,
location: Location,
contact: Contact,
issue_report_channels: Vec<IssueReportChannel>,
) -> 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]
Expand Down

0 comments on commit 0984310

Please sign in to comment.