Skip to content

Commit

Permalink
Impl Default for VectorizedFontCache
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 13, 2018
1 parent 95dc353 commit 7aa88a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/widgets/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,12 @@ pub struct VectorizedFontCache {
vectorized_fonts: Mutex<FastHashMap<FontId, Arc<VectorizedFont>>>,
}

impl Default for VectorizedFontCache {
fn default() -> Self {
VectorizedFontCache::new()
}
}

#[test]
fn test_vectorized_font_cache_is_send() {
fn is_send<T: Send>() {}
Expand Down

0 comments on commit 7aa88a0

Please sign in to comment.