make Widget impl ProfilePic mutably
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
1 parent
640bf742c0
commit
7d2112b472
10 files changed
+30
-21
No files matched your search
@@ -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