Add a bunch of deny(unsafe_code)

This commit is contained in:
Olivier Goffart 2020-06-12 21:03:26 +02:00
parent 95f63795d5
commit e9b75d30b7
4 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,5 @@
#![deny(unsafe_code)]
sixtyfps::include_modules!();
fn main() {
@ -11,6 +13,5 @@ fn main() {
let app = context.component.downcast::<Hello>().unwrap();
app.counter.set(app.counter.get(context) - 1);
});
app.run();
}