1
Fork 0
mirror of https://github.com/RGBCube/embd-rs synced 2025-07-27 05:27:44 +00:00

Add type annotations

This commit is contained in:
RGBCube 2024-01-05 11:39:24 +03:00
parent 8f3c415308
commit e034144ab6
No known key found for this signature in database

View file

@ -29,7 +29,7 @@ macro_rules! string {
($path:literal) => {{ ($path:literal) => {{
#[cfg(debug_assertions)] #[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))] #[cfg(not(debug_assertions))]
{ {
@ -64,7 +64,7 @@ macro_rules! bytes {
($path:literal) => {{ ($path:literal) => {{
#[cfg(debug_assertions)] #[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))] #[cfg(not(debug_assertions))]
{ {