Skip to content

Commit 14e6209

Browse files
committed
remove last try!
1 parent cfec6ef commit 14e6209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/badge/badge.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Badge {
4646
pub fn new(options: BadgeOptions) -> Result<Badge, String> {
4747
let collection = FontCollection::from_bytes(FONT_DATA).expect("Failed to parse FONT_DATA");
4848
// this should never fail in practice
49-
let font = try!(collection.into_font().map_err(|_| "Failed to load font data".to_owned()));
49+
let font = collection.into_font().map_err(|_| "Failed to load font data".to_owned())?;
5050
let scale = Scale {
5151
x: FONT_SIZE,
5252
y: FONT_SIZE,

0 commit comments

Comments
 (0)