Skip to content

Commit c2e8d92

Browse files
authored
Derive Copy and Clone for FontAtlasKey (#21315)
# Objective For convenience, need to collect some.
1 parent 1fd3bfb commit c2e8d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_text/src/font_atlas_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn remove_dropped_font_atlas_sets(
4949
/// Identifies a font size and smoothing method in a [`FontAtlasSet`].
5050
///
5151
/// Allows an `f32` font size to be used as a key in a `HashMap`, by its binary representation.
52-
#[derive(Debug, Hash, PartialEq, Eq)]
52+
#[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)]
5353
pub struct FontAtlasKey(pub u32, pub FontSmoothing);
5454

5555
/// A map of font sizes to their corresponding [`FontAtlas`]es, for a given font face.

0 commit comments

Comments
 (0)