Format document

This commit is contained in:
Vladimir Borisov 2021-07-27 15:08:25 +03:00
parent e81d4e9541
commit 3aa0c40a03
No known key found for this signature in database
GPG key ID: F9A584BE4FCB6603

View file

@ -16,7 +16,7 @@ pub struct SplashImage {
impl SplashImage {
const BG_COLOR: [u8; 3] = [27, 17, 38];
pub fn resize(&self, size:(u32, u32)) {
pub fn resize(&self, size: (u32, u32)) {
let (w, h) = size;
let s = cmp::min(w, h);
self.splash_frame.set_size(w, h);
@ -29,4 +29,4 @@ impl SplashImage {
pub fn hide(&self) {
self.splash_frame.set_visible(false);
}
}
}