Skip to content

Commit

Permalink
Fix clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
devanlooches authored and hannobraun committed Aug 5, 2022
1 parent ef196dd commit 0992297
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/fj-interop/src/status_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ pub struct StatusReport {
impl StatusReport {
/// Create a new ``StatusReport`` instance with a blank status
pub fn new() -> Self {
Self {
status: String::new(),
}
Self::default()
}

/// Update the status
Expand All @@ -23,3 +21,9 @@ impl StatusReport {
self.status.as_str()
}
}

impl Default for StatusReport {
fn default() -> Self {
Self::new()
}
}

0 comments on commit 0992297

Please sign in to comment.