Skip to content

Commit f55c006

Browse files
kristof-matteiahayzen-kdab
authored andcommitted
Prevent clippy from tripping lint
1 parent d8f0f98 commit f55c006

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/cxx-qt-gen/src/generator/rust/constructor.rs

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ fn generate_default_constructor(
8383
}],
8484
cxx_qt_mod_contents: vec![parse_quote! {
8585
#[doc(hidden)]
86+
#[allow(clippy::unnecessary_box_returns)]
8687
pub fn #create_rs_ident() -> std::boxed::Box<#rust_struct_ident> {
8788
// Wrapping the call to Default::default in a Box::new call leads
8889
// to a nicer error message, as it's not trying to infer trait bounds

0 commit comments

Comments
 (0)