make Widget impl ProfilePic mutably
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -275,9 +275,9 @@ impl Chrome {
|
||||
let txn = Transaction::new(ctx.ndb).expect("should be able to create txn");
|
||||
let profile_url = get_account_url(&txn, ctx.ndb, ctx.accounts.get_selected_account());
|
||||
|
||||
let widget = ProfilePic::new(ctx.img_cache, profile_url).size(cur_pfp_size);
|
||||
let mut widget = ProfilePic::new(ctx.img_cache, profile_url).size(cur_pfp_size);
|
||||
|
||||
ui.put(helper.get_animation_rect(), widget);
|
||||
ui.put(helper.get_animation_rect(), &mut widget);
|
||||
|
||||
helper.take_animation_response()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user