opt level and no Debug by unwrap (#311)

This commit is contained in:
kaczmarczyck
2021-04-21 11:45:01 +02:00
committed by GitHub
parent 7c8894bb04
commit c03605aa0c
2 changed files with 2 additions and 1 deletions

View File

@@ -43,3 +43,4 @@ lto = true # Link Time Optimization usually reduces size of binaries and static
[profile.release] [profile.release]
panic = "abort" panic = "abort"
lto = true # Link Time Optimization usually reduces size of binaries and static libraries lto = true # Link Time Optimization usually reduces size of binaries and static libraries
opt-level = "z"

View File

@@ -72,7 +72,7 @@ impl PersistentStore {
let mut store = PersistentStore { let mut store = PersistentStore {
store: persistent_store::Store::new(storage).ok().unwrap(), store: persistent_store::Store::new(storage).ok().unwrap(),
}; };
store.init(rng).unwrap(); store.init(rng).ok().unwrap();
store store
} }