Skip to content

Commit e26369a

Browse files
committed
use super::* from tests submodules
1 parent 97a08ee commit e26369a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎ast/src/constant.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ impl<U> crate::fold::Fold<U> for ConstantOptimizer {
133133

134134
#[cfg(test)]
135135
mod tests {
136+
use super::*;
137+
136138
#[cfg(feature = "constant-optimization")]
137139
#[test]
138140
fn test_constant_opt() {
139-
use super::*;
140-
use crate::fold::Fold;
141-
use crate::*;
141+
use crate::{fold::Fold, *};
142142

143143
let start = Default::default();
144144
let end = None;

‎core/src/location.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl Location {
9696

9797
#[cfg(test)]
9898
mod tests {
99-
use crate::Location;
99+
use super::*;
100100

101101
#[test]
102102
fn test_gt() {

‎parser/src/function.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fn is_starred(exp: &ast::Expr) -> bool {
151151

152152
#[cfg(test)]
153153
mod tests {
154-
use crate::lexer::LexicalErrorType;
154+
use super::*;
155155
use crate::parser::{parse_program, ParseErrorType};
156156

157157
macro_rules! function_and_lambda {

0 commit comments

Comments
 (0)