We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a45a7c commit 87a4536Copy full SHA for 87a4536
src/main.rs
@@ -5,12 +5,11 @@ use std::path::Path;
5
fn main() {
6
env_logger::init();
7
8
- let assets_dir = std::env::var("FLUTTER_ASSET_DIR")
9
- .expect("FLUTTER_ASSET_DIR");
+ let assets_dir = std::env::var("FLUTTER_ASSET_DIR").expect("FLUTTER_ASSET_DIR");
10
11
let mut args = Vec::with_capacity(1);
12
13
- if let Some(snapshot) = std::env::var("FLUTTER_AOT_SNAPSHOT").ok() {
+ if let Ok(snapshot) = std::env::var("FLUTTER_AOT_SNAPSHOT") {
14
if Path::new(&snapshot).exists() {
15
args.push(format!("--aot-shared-library-name={}", snapshot));
16
}
0 commit comments