Skip to content

Commit 905650e

Browse files
author
Sam Reis
committed
strip unused lifetime parameter from Badge
1 parent cd4bef6 commit 905650e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/web/badge/badge.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ impl Default for BadgeOptions {
3232
}
3333

3434

35-
pub struct Badge<'a> {
35+
pub struct Badge {
3636
options: BadgeOptions,
37-
font: Font<'a>,
37+
font: Font<'static>,
3838
scale: Scale,
3939
offset: Point<f32>,
4040
}
4141

4242

43-
impl<'a> Badge<'a> {
44-
pub fn new(options: BadgeOptions) -> Result<Badge<'a>, String> {
43+
impl Badge {
44+
pub fn new(options: BadgeOptions) -> Result<Badge, String> {
4545
let collection = FontCollection::from_bytes(FONT_DATA);
4646
// this should never fail in practice
4747
let font = try!(collection.into_font().ok_or("Failed to load font data".to_owned()));

0 commit comments

Comments
 (0)