Skip to content

Commit

Permalink
style: clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Nov 16, 2023
1 parent d2e6fd3 commit 55a6184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uplink/src/base/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl ActionResponse {

impl Point for ActionResponse {
fn stream_name(&self) -> &str {
self.action_name.as_ref().map(|n| n.as_str()).unwrap_or_else(|| DEFAULT_RESPONSE_STREAM)
self.action_name.as_deref().unwrap_or(DEFAULT_RESPONSE_STREAM)
}

fn sequence(&self) -> u32 {
Expand Down

0 comments on commit 55a6184

Please sign in to comment.