Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Oct 9, 2023
1 parent 8d8e7a3 commit 7a5a551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl ViewState {
for breakpoint in breakpoints {
self.responsive_styles
.entry(breakpoint)
.or_insert_with(Vec::new)
.or_default()
.push(style.clone())
}
}
Expand Down
2 changes: 1 addition & 1 deletion vger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ impl Renderer for VgerRenderer {
cache_key.x_bin = subpx_x;
cache_key.y_bin = subpx_y;
let image = swash_cache.get_image_uncached(cache_key);
image.unwrap_or_else(SwashImage::new)
image.unwrap_or_default()
},
paint,
);
Expand Down

0 comments on commit 7a5a551

Please sign in to comment.