mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
fixup pyclass
This commit is contained in:
1 parent
5edaf12d2a
commit
df5948e2db
1 file changed
+2
-8
@@ -360,10 +360,7 @@ impl<Item> ImplItem<Item> for PropertyItem
|
||||
where
|
||||
Item: ItemLike + ToTokens + GetIdent,
|
||||
{
|
||||
fn gen_impl_item(&self, args: ImplItemArgs<'_, Item>) -> Result<()>
|
||||
where
|
||||
Item: ItemLike + ToTokens + GetIdent,
|
||||
{
|
||||
fn gen_impl_item(&self, args: ImplItemArgs<'_, Item>) -> Result<()> {
|
||||
let ident = if args.item.is_function_or_method() {
|
||||
Ok(args.item.get_ident().unwrap())
|
||||
} else {
|
||||
@@ -390,10 +387,7 @@ impl<Item> ImplItem<Item> for SlotItem
|
||||
where
|
||||
Item: ItemLike + ToTokens + GetIdent,
|
||||
{
|
||||
fn gen_impl_item(&self, args: ImplItemArgs<'_, Item>) -> Result<()>
|
||||
where
|
||||
Item: ItemLike + ToTokens + GetIdent,
|
||||
{
|
||||
fn gen_impl_item(&self, args: ImplItemArgs<'_, Item>) -> Result<()> {
|
||||
let ident = if args.item.is_function_or_method() {
|
||||
Ok(args.item.get_ident().unwrap())
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user