Skip to content

Commit 93b8c7e

Browse files
committed
use derive tag for default implementation
1 parent 4431176 commit 93b8c7e

File tree

1 file changed

+1
-6
lines changed
  • components/merino/src/curated_recommendations

1 file changed

+1
-6
lines changed

components/merino/src/curated_recommendations/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,12 @@ struct CuratedRecommendationsClientInner<T: http::HttpClientTrait> {
2727
http_client: T,
2828
}
2929

30+
#[derive(Default)]
3031
pub struct CuratedRecommendationsClientBuilder {
3132
base_host: Option<String>,
3233
user_agent_header: Option<String>,
3334
}
3435

35-
impl Default for CuratedRecommendationsClientBuilder {
36-
fn default() -> Self {
37-
Self::new()
38-
}
39-
}
40-
4136
impl CuratedRecommendationsClientBuilder {
4237
pub fn new() -> Self {
4338
Self {

0 commit comments

Comments
 (0)