mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Cleanup an unwanted impl From on Image
This commit is contained in:
parent
b56a5581ed
commit
c404194a8d
3 changed files with 10 additions and 19 deletions
|
@ -1823,11 +1823,7 @@ fn compile_expression(expr: &Expression, ctx: &EvaluationContext) -> TokenStream
|
|||
crate::expression_tree::ImageReference::EmbeddedData { resource_id, extension } => {
|
||||
let symbol = format_ident!("SLINT_EMBEDDED_RESOURCE_{}", resource_id);
|
||||
let format = proc_macro2::Literal::byte_string(extension.as_bytes());
|
||||
quote!(
|
||||
slint::re_exports::Image::from(
|
||||
( #symbol.into(), Slice::from_slice(#format) )
|
||||
)
|
||||
)
|
||||
quote!(slint::re_exports::load_image_from_embedded_data(#symbol.into(), Slice::from_slice(#format)))
|
||||
}
|
||||
crate::expression_tree::ImageReference::EmbeddedTexture { resource_id } => {
|
||||
let symbol = format_ident!("SLINT_EMBEDDED_RESOURCE_{}", resource_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue