Skip to content

Commit

Permalink
Add to CHANGELOG.md. Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed Dec 27, 2024
1 parent 092e698 commit e5bc76d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Support Faktory's `MUTATE` API ([#87])
- Make `Failure` struct public ([#89])
- `Job::failure_message` convenience method ([#89])

### Changed

Expand Down
4 changes: 1 addition & 3 deletions src/proto/single/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ impl Job {
///
/// To access the entire failure, if any, use [`Job::failure`].
pub fn failure_message(&self) -> Option<&str> {
self.failure()
.as_ref()
.and_then(|f| f.message.as_ref().map(|m| m.as_str()))
self.failure().as_ref().and_then(|f| f.message.as_deref())
}
}

Expand Down

0 comments on commit e5bc76d

Please sign in to comment.