aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-06 10:24:54 +0100
committerAkshay <[email protected]>2021-04-06 10:24:54 +0100
commitc84c38544bc6e81f0b0482e4e82b6c95848c1a0c (patch)
tree3ae2f3387ba5ef56a7f7c3304dc029ae7845f175 /src/main.rs
parent3f5b917c6ced370d940774b51ff89cec0d03c562 (diff)
apply clippy lints
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 9370abf..245ee83 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,4 @@
1#![allow(clippy::upper_case_acronyms, clippy::vec_init_then_push)]
1mod app; 2mod app;
2mod bitmap; 3mod bitmap;
3mod brush; 4mod brush;
@@ -62,13 +63,12 @@ pub fn error_sink() -> Result<(), AppError> {
62 .run(); 63 .run();
63 } 64 }
64 } 65 }
65 return Ok(()); 66 Ok(())
66} 67}
67 68
68pub fn main() { 69pub fn main() {
69 env_logger::init(); 70 env_logger::init();
70 match error_sink() { 71 if let Err(e) = error_sink() {
71 Err(e) => error!("{}", e), 72 error!("{}", e);
72 _ => (),
73 } 73 }
74} 74}