Use anyhow for backend errors

This commit is contained in:
Elias Projahn 2020-10-11 19:53:36 +02:00
parent b2ab93cefa
commit 95f939cb07
8 changed files with 336 additions and 340 deletions

View file

@ -44,6 +44,8 @@ where
result
.backend
.get_persons(clone!(@strong result => move |persons| {
let persons = persons.unwrap();
for (index, person) in persons.iter().enumerate() {
let label = gtk::Label::new(Some(&person.name_lf()));
label.set_halign(gtk::Align::Start);