Skip to content

Commit 87a4536

Browse files
committed
Fix fmt and clippy issues.
1 parent 6a45a7c commit 87a4536

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ use std::path::Path;
55
fn main() {
66
env_logger::init();
77

8-
let assets_dir = std::env::var("FLUTTER_ASSET_DIR")
9-
.expect("FLUTTER_ASSET_DIR");
8+
let assets_dir = std::env::var("FLUTTER_ASSET_DIR").expect("FLUTTER_ASSET_DIR");
109

1110
let mut args = Vec::with_capacity(1);
1211

13-
if let Some(snapshot) = std::env::var("FLUTTER_AOT_SNAPSHOT").ok() {
12+
if let Ok(snapshot) = std::env::var("FLUTTER_AOT_SNAPSHOT") {
1413
if Path::new(&snapshot).exists() {
1514
args.push(format!("--aot-shared-library-name={}", snapshot));
1615
}

0 commit comments

Comments
 (0)