We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
try!
1 parent cfec6ef commit 14e6209Copy full SHA for 14e6209
src/web/badge/badge.rs
@@ -46,7 +46,7 @@ impl Badge {
46
pub fn new(options: BadgeOptions) -> Result<Badge, String> {
47
let collection = FontCollection::from_bytes(FONT_DATA).expect("Failed to parse FONT_DATA");
48
// this should never fail in practice
49
- let font = try!(collection.into_font().map_err(|_| "Failed to load font data".to_owned()));
+ let font = collection.into_font().map_err(|_| "Failed to load font data".to_owned())?;
50
let scale = Scale {
51
x: FONT_SIZE,
52
y: FONT_SIZE,
0 commit comments