Skip to content

Commit 84fecfe

Browse files
committed
Run cargo fmt
1 parent 6f36d05 commit 84fecfe

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

build.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,24 @@ fn main() {
1111
let mut gray = img.into_luma8();
1212

1313
// Apply mask
14-
let mask = ImageReader::open(path.join("mask_14x14.gif")).unwrap()
15-
.decode().unwrap()
14+
let mask = ImageReader::open(path.join("mask_14x14.gif"))
15+
.unwrap()
16+
.decode()
17+
.unwrap()
1618
.into_luma8();
1719

1820
for (x, y, mask_pixel) in mask.enumerate_pixels() {
1921
let mask_value = mask_pixel[0];
2022
let mut gray_pixel = gray.get_pixel(x, y).clone();
2123
if mask_value == 0 {
22-
gray_pixel = image::Luma([0]);
24+
gray_pixel = image::Luma([0]);
2325
} else {
24-
gray_pixel.invert();
26+
gray_pixel.invert();
2527
}
2628
gray.put_pixel(x, y, gray_pixel);
2729
}
2830

2931
let glyph_path = std::path::PathBuf::from("glyphs");
30-
gray.save_with_format(glyph_path.join("home_nano_nbgl.png"), ImageFormat::Png).unwrap();
32+
gray.save_with_format(glyph_path.join("home_nano_nbgl.png"), ImageFormat::Png)
33+
.unwrap();
3134
}

src/app_ui/menu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ pub fn ui_menu_main(_: &mut Comm) -> NbglHomeAndSettings {
2626
#[cfg(any(target_os = "stax", target_os = "flex"))]
2727
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/crab_64x64.gif", NBGL));
2828
#[cfg(any(target_os = "nanosplus", target_os = "nanox"))]
29-
const FERRIS: NbglGlyph = NbglGlyph::from_include(include_gif!("glyphs/home_nano_nbgl.png", NBGL));
30-
29+
const FERRIS: NbglGlyph =
30+
NbglGlyph::from_include(include_gif!("glyphs/home_nano_nbgl.png", NBGL));
3131

3232
let settings_strings = [["Display Memo", "Allow display of transaction memo."]];
3333
let mut settings: Settings = Default::default();

0 commit comments

Comments
 (0)