Skip to content

Commit

Permalink
unwrap_or_default because clippy said so
Browse files Browse the repository at this point in the history
  • Loading branch information
analogrelay authored Oct 21, 2024
1 parent 2e07ccb commit 88151c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/cosmos/azure_data_cosmos/src/resource_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl ResourceLink {
pub fn resource_link(&self) -> String {
match self.item_id {
Some(_) => self.path(),
None => self.parent.clone().unwrap_or_else(|| "".to_string()),
None => self.parent.clone().unwrap_or_default(),
}
}

Expand Down

0 comments on commit 88151c6

Please sign in to comment.