Skip to content

Commit 4154e94

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 e4eef06 commit 4154e94

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

CHANGELOG.md

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

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

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

src/status.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -283,33 +283,6 @@ pub struct Status {
283283
pub extensions: Extensions,
284284
}
285285

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

0 commit comments

Comments
 (0)