diff --git a/sdk/cosmos/azure_data_cosmos/src/resource_context.rs b/sdk/cosmos/azure_data_cosmos/src/resource_context.rs index 639f9eea16..bec0d57f79 100644 --- a/sdk/cosmos/azure_data_cosmos/src/resource_context.rs +++ b/sdk/cosmos/azure_data_cosmos/src/resource_context.rs @@ -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(), } }