Visitar URL original
`#[newtype_oparg]` derive macro by ShaharNaveh · Pull Request #7489 · RustPython/RustPython · GitHub
Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove debug code
  • Loading branch information
ShaharNaveh committed Mar 23, 2026
commit f5c2f9b4f0291b14dc37f2361fc9f61b81cc37e5
10 changes: 1 addition & 9 deletions crates/macros/src/newtype_oparg.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
use quote::quote;
use syn::{
// Attribute,
Error,
// Expr,
Ident,
ItemEnum,
ItemStruct,
spanned::Spanned,
};
use syn::{Error, Ident, ItemEnum, ItemStruct, spanned::Spanned};

pub(super) fn handle_struct(item: ItemStruct) -> syn::Result<proc_macro2::TokenStream> {
if !item.fields.is_empty() {
Expand Down
Loading