Skip to content

Commit 59c8b25

Browse files
GearsDatapackslpil
authored andcommitted
Clippy
1 parent dfa63a6 commit 59c8b25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler-core/src/analyse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ impl<'a, A> ModuleAnalyzer<'a, A> {
14161416

14171417
environment.names.maybe_register_reexport_alias(
14181418
&environment.current_package,
1419-
&name,
1419+
name,
14201420
&alias,
14211421
);
14221422

compiler-core/src/type_/printer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ impl Names {
222222
.map(|(_, location)| location)
223223
}
224224

225+
/// Check whether a particular type alias is reexporting an internal type,
226+
/// and if so register it so we can print it correctly.
225227
pub fn maybe_register_reexport_alias(
226228
&mut self,
227229
package: &EcoString,
@@ -251,7 +253,7 @@ impl Names {
251253
);
252254
}
253255
}
254-
_ => {}
256+
Type::Fn { .. } | Type::Var { .. } | Type::Tuple { .. } => {}
255257
}
256258
}
257259

0 commit comments

Comments
 (0)