make Widget impl ProfilePic mutably
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ impl<'a> EditProfileView<'a> {
|
||||
});
|
||||
ui.put(
|
||||
pfp_rect,
|
||||
ProfilePic::new(self.img_cache, pfp_url)
|
||||
&mut ProfilePic::new(self.img_cache, pfp_url)
|
||||
.size(size)
|
||||
.border(ProfilePic::border_stroke(ui)),
|
||||
);
|
||||
|
||||
@@ -148,7 +148,7 @@ impl<'a, 'd> ProfileView<'a, 'd> {
|
||||
ui.horizontal(|ui| {
|
||||
ui.put(
|
||||
pfp_rect,
|
||||
ProfilePic::new(
|
||||
&mut ProfilePic::new(
|
||||
self.note_context.img_cache,
|
||||
get_profile_url(Some(&profile)),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user