From 9dd42cd1e1a090d4ab2c8250ecef0a1abe990ee5 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 6 Jan 2022 12:55:33 +0100 Subject: [PATCH] Use`const _` instead of `mod __` --- crates/syntax/src/ast/node_ext.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs index 749581b1ce..7dd9ac1e9e 100644 --- a/crates/syntax/src/ast/node_ext.rs +++ b/crates/syntax/src/ast/node_ext.rs @@ -445,13 +445,10 @@ impl ast::AstNode for NameLike { } } -mod __ { - use super::{ - ast::{Lifetime, Name, NameRef}, - NameLike, - }; +const _: () = { + use ast::{Lifetime, Name, NameRef}; stdx::impl_from!(NameRef, Name, Lifetime for NameLike); -} +}; #[derive(Debug, Clone, PartialEq)] pub enum NameOrNameRef {