Skip to content

Commit

Permalink
Rename parameter name of ImageTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfoodK committed Jun 24, 2024
1 parent 3e77c51 commit 5e7a359
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion namui/namui/src/namui/hooks/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ use std::ops::Deref;
pub type Load<T> = Option<Result<T>>;

pub trait ImageTrait {
fn image(&self, url: impl AsRef<ResourceLocation>) -> Sig<Load<Image>, &Load<Image>>;
fn image(
&self,
resource_location: impl AsRef<ResourceLocation>,
) -> Sig<Load<Image>, &Load<Image>>;
}

impl ImageTrait for RenderCtx<'_, '_> {
Expand Down

0 comments on commit 5e7a359

Please sign in to comment.