mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
vtable: fix clippy warning about unneeded mut in a macro
This commit is contained in:
parent
073447a47d
commit
b40b1291e3
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ macro_rules! new_vref {
|
|||
// ensure that the type of the expression is correct
|
||||
let vtable = {
|
||||
use $crate::VTableMeta;
|
||||
fn get_vt<X: $trait_>(_: &X) -> <$vtable as VTableMeta>::VTable {
|
||||
fn get_vt<X: $trait_>(_: &mut X) -> <$vtable as VTableMeta>::VTable {
|
||||
<$vtable as VTableMeta>::VTable::new::<X>()
|
||||
}
|
||||
get_vt($e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue