Skip to content

Commit 0984310

Browse files
committed
Remove deprecated Status::new constructor method
It has been deprecated for a few versions now and hinders the implementation of v15. [breaking-change]
1 parent a76cef2 commit 0984310

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Possible log types:
1414
### Unreleased
1515

1616
- [changed] Require at least Rust 1.75
17+
- [changed] Require at least Rust 1.60
18+
- [changed] Remove deprecated `Status::new` constructor method
1719

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

src/status.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -278,33 +278,6 @@ pub struct Status {
278278
pub extensions: Extensions,
279279
}
280280

281-
impl Status {
282-
/// Create a new Status object with only the absolutely required fields.
283-
#[deprecated(
284-
since = "0.5.0",
285-
note = "Please use the `StatusBuilder` or a struct expression instead"
286-
)]
287-
pub fn new<S: Into<String>>(
288-
space: S,
289-
logo: S,
290-
url: S,
291-
location: Location,
292-
contact: Contact,
293-
issue_report_channels: Vec<IssueReportChannel>,
294-
) -> Status {
295-
Status {
296-
api: Some("0.13".into()),
297-
space: space.into(),
298-
logo: logo.into(),
299-
url: url.into(),
300-
location,
301-
contact,
302-
issue_report_channels,
303-
..Default::default()
304-
}
305-
}
306-
}
307-
308281
#[derive(Default, Debug, Copy, Clone, Eq, PartialEq)]
309282
enum StatusBuilderVersion {
310283
#[default]

0 commit comments

Comments
 (0)