From 1f09510c7430ea659cd31a612a03c70e7313a2b5 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 27 Aug 2020 16:34:24 +0200 Subject: [PATCH] Avoid opt-level=z Avoids https://github.com/rust-lang/rust/issues/75045, which you would otherwise hit when using the nRF HAL. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5eb3f60..4a0e1f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ debug = 1 debug-assertions = true # <- incremental = false lto = 'fat' -opt-level = 'z' # <- +opt-level = 3 # <- overflow-checks = true # <- [profile.release] @@ -65,4 +65,4 @@ codegen-units = 8 debug = false debug-assertions = false opt-level = 0 -overflow-checks = false \ No newline at end of file +overflow-checks = false