mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Upgrade to the Rust 2024 edition (#2367)
* Update to rust 2024 edition * Fixes * Clean up imports * Cargo fmt again --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "rawkit-proc-macros"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
authors = ["Graphite Authors <contact@graphite.rs>"]
|
||||
description = "Procedural macros for Rawkit"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
use proc_macro::TokenStream;
|
||||
use quote::{quote, ToTokens};
|
||||
use toml::{Table, Value};
|
||||
|
||||
use quote::{ToTokens, quote};
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
use toml::{Table, Value};
|
||||
|
||||
enum CustomValue {
|
||||
String(String),
|
||||
|
||||
@@ -24,7 +24,7 @@ pub fn tag_derive(input: TokenStream) -> TokenStream {
|
||||
|
||||
let new_name = format_ident!("_{}", name);
|
||||
|
||||
let gen = quote! {
|
||||
let r#gen = quote! {
|
||||
struct #new_name {
|
||||
#( #struct_idents: <#struct_types as Tag>::Output ),*
|
||||
}
|
||||
@@ -39,5 +39,5 @@ pub fn tag_derive(input: TokenStream) -> TokenStream {
|
||||
}
|
||||
};
|
||||
|
||||
gen.into()
|
||||
r#gen.into()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user