Skip to content

Commit

Permalink
Update image.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jul 4, 2024
1 parent 0a9d65f commit f3a8a97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/egui/src/widgets/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ impl<'a> Image<'a> {
}
}

/// Get the `uri` that this image.
/// Returns the URI of the image.
///
/// For GIFs, returns the URI without the frame number.
#[inline]
pub fn uri(&self) -> Option<&str> {
let uri = self.source.uri()?;
Expand Down

0 comments on commit f3a8a97

Please sign in to comment.