Skip to content

Commit 2b1d77c

Browse files
committed
Fixed rustfmt errors
1 parent e12c79b commit 2b1d77c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/web/badge/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Simple badge generator
22
33
use base64::display::Base64Display;
4-
use rusttype::{point, Font, Point, PositionedGlyph, Scale};
54
use once_cell::sync::Lazy;
5+
use rusttype::{point, Font, Point, PositionedGlyph, Scale};
66

77
const FONT_DATA: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/DejaVuSans.ttf"));
88
const FONT_SIZE: f32 = 11.0;
@@ -35,9 +35,8 @@ pub struct Badge {
3535

3636
impl Badge {
3737
pub fn new(options: BadgeOptions) -> Result<Badge, String> {
38-
static FONT: Lazy<Font> = Lazy::new(|| {
39-
Font::try_from_bytes(FONT_DATA).expect("Failed to parse FONT_DATA")
40-
});
38+
static FONT: Lazy<Font> =
39+
Lazy::new(|| Font::try_from_bytes(FONT_DATA).expect("Failed to parse FONT_DATA"));
4140

4241
let font = &*FONT;
4342
let scale = Scale {

0 commit comments

Comments
 (0)