Skip to content

Commit 9dd42cd

Browse files
author
Jonas Schievink
committed
Useconst _ instead of mod __
1 parent 7585127 commit 9dd42cd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/syntax/src/ast/node_ext.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,10 @@ impl ast::AstNode for NameLike {
445445
}
446446
}
447447

448-
mod __ {
449-
use super::{
450-
ast::{Lifetime, Name, NameRef},
451-
NameLike,
452-
};
448+
const _: () = {
449+
use ast::{Lifetime, Name, NameRef};
453450
stdx::impl_from!(NameRef, Name, Lifetime for NameLike);
454-
}
451+
};
455452

456453
#[derive(Debug, Clone, PartialEq)]
457454
pub enum NameOrNameRef {

0 commit comments

Comments
 (0)