mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Fix warning in Rust 1.77 with unused exported globals
This commit is contained in:
parent
5e12f0876f
commit
da9fb9fa1b
1 changed files with 1 additions and 0 deletions
|
@ -1194,6 +1194,7 @@ fn generate_global(global: &llr::GlobalComponent, root: &llr::PublicComponent) -
|
|||
|
||||
let aliases = global.aliases.iter().map(|name| ident(name));
|
||||
quote!(
|
||||
#[allow(unused)]
|
||||
pub struct #public_component_id<'a>(&'a ::core::pin::Pin<sp::Rc<#inner_component_id>>);
|
||||
|
||||
impl<'a> #public_component_id<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue