mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-22 14:04:05 +00:00
Fix a lot of Clippy warnings (#1808)
* fix a lot of clippy warnings * fix more clippy warnings * fix yet more clippy warnings * bump msrv to 1.70.0 to silence warnings * fix a lot of clippy warnings * fix more clippy warnings * fix yet more clippy warnings * fix a few more warnings * fix a clippy warning * remove a commented out line * silense too many arguments error * fix more clippy warnings * prefix underscore to unused vars/functions to fix warnings * use filter instead of map * move raw-rs-tests feature flat to module level to fix unused imports warnings * fix a couple of unused result warnings --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
f7ada701e5
commit
62f73df048
49 changed files with 264 additions and 260 deletions
|
@ -141,11 +141,14 @@ fn node_new_impl(attr: TokenStream, item: TokenStream) -> TokenStream {
|
|||
args.push(Type::Verbatim(quote::quote!(#ident)));
|
||||
}
|
||||
|
||||
let function_attributes = &function.attrs;
|
||||
|
||||
let struct_generics_iter = struct_generics.iter();
|
||||
quote::quote! {
|
||||
#[automatically_derived]
|
||||
impl <#(#args),*> #node_name<#(#args),*>
|
||||
{
|
||||
#(#function_attributes)*
|
||||
pub const fn new(#(#parameter_idents: #struct_generics_iter),*) -> Self{
|
||||
Self {
|
||||
#(#parameter_idents,)*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue