Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cea3ea4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Update code for Rust 1.82.0" into main

parents 4434fc5a b415d7ee
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -103,8 +103,7 @@ pub fn cb_variant(input: TokenStream) -> TokenStream {
        let ident = format_ident!("_{}", i);
        params.extend(quote! { #ident: #start, });

        match end {
            Some(v) => {
        if let Some(v) = end {
            // Argument needs an into translation if it doesn't match the start
            if start != v {
                args.extend(quote! { #end::from(#ident), });
@@ -112,9 +111,6 @@ pub fn cb_variant(input: TokenStream) -> TokenStream {
                args.extend(quote! {#ident,});
            }
        }
            // If there's no end type, just consume it instead.
            None => (),
        }
    }

    let mut stmts = proc_macro2::TokenStream::new();