mirror of
https://github.com/RGBCube/embd-rs
synced 2025-07-27 13:37:44 +00:00
Add type annotations
This commit is contained in:
parent
8f3c415308
commit
e034144ab6
1 changed files with 2 additions and 2 deletions
|
@ -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))]
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue