From e034144ab659d2f68f124e35342d5c419192ee57 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 5 Jan 2024 11:39:24 +0300 Subject: [PATCH] Add type annotations --- embed/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embed/src/lib.rs b/embed/src/lib.rs index b510623..4545e00 100644 --- a/embed/src/lib.rs +++ b/embed/src/lib.rs @@ -29,7 +29,7 @@ macro_rules! string { ($path:literal) => {{ #[cfg(debug_assertions)] { - ::std::borrow::Cow::Owned(::embed::__string_runtime(file!(), $path)) + ::std::borrow::Cow::Owned::<'static, str>(::embed::__string_runtime(file!(), $path)) } #[cfg(not(debug_assertions))] { @@ -64,7 +64,7 @@ macro_rules! bytes { ($path:literal) => {{ #[cfg(debug_assertions)] { - ::std::borrow::Cow::Owned(::embed::__bytes_runtime(file!(), $path)) + ::std::borrow::Cow::Owned::<'static, [u8]>(::embed::__bytes_runtime(file!(), $path)) } #[cfg(not(debug_assertions))] {