Skip to content

Remove deprecated Status::new constructor method #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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