diff --git a/crates/egui/src/lib.rs b/crates/egui/src/lib.rs index b367158a58b..c9d9b37ce48 100644 --- a/crates/egui/src/lib.rs +++ b/crates/egui/src/lib.rs @@ -507,7 +507,7 @@ pub fn warn_if_debug_build(ui: &mut crate::Ui) { /// ``` #[macro_export] macro_rules! include_image { - ($path: literal) => { + ($path:expr $(,)?) => { $crate::ImageSource::Bytes { uri: ::std::borrow::Cow::Borrowed(concat!("bytes://", $path)), bytes: $crate::load::Bytes::Static(include_bytes!($path)),