Skip to content

Commit 3609fa3

Browse files
refactor: use variable directly in the format
1 parent f736d45 commit 3609fa3

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
@@ -1379,7 +1379,7 @@ The imported value could not be used in this module anyway."
13791379

13801380
Warning::EmptyModule { path, name } => Diagnostic {
13811381
title: "Empty module".into(),
1382-
text: format!("Module '{}' contains no public definitions.", name),
1382+
text: format!("Module '{name}' contains no public definitions."),
13831383
hint: Some("Consider adding public functions, types, or constants, or removing this module.".into()),
13841384
level: diagnostic::Level::Warning,
13851385
location: Some(Location {

0 commit comments

Comments
 (0)