Skip to content

Commit 349431a

Browse files
refactor: use variable directly in the format
1 parent 80955eb commit 349431a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-core/src/warning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ The imported value could not be used in this module anyway."
13981398

13991399
Warning::EmptyModule { path, name } => Diagnostic {
14001400
title: "Empty module".into(),
1401-
text: format!("Module '{}' contains no public definitions.", name),
1401+
text: format!("Module '{name}' contains no public definitions."),
14021402
hint: Some("Consider adding public functions, types, or constants, or removing this module.".into()),
14031403
level: diagnostic::Level::Warning,
14041404
location: Some(Location {

0 commit comments

Comments
 (0)