Skip to content

Commit 47f0abd

Browse files
GearsDatapackslpil
authored andcommitted
Do the clippy dance
1 parent a8a08f1 commit 47f0abd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler-core/src/language_server/code_action.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5142,7 +5142,7 @@ impl<'ast> ast::visit::Visit<'ast> for GenerateFunction<'ast> {
51425142
) {
51435143
match constructor {
51445144
// Invalid module selects leave the `name` field blank
5145-
ModuleValueConstructor::Fn { name, .. } if name == "" => {
5145+
ModuleValueConstructor::Fn { name, .. } if name.is_empty() => {
51465146
self.try_save_function_from_other_module(module_name, label, type_, None);
51475147
}
51485148
ModuleValueConstructor::Fn { .. }
@@ -5177,7 +5177,7 @@ impl<'ast> ast::visit::Visit<'ast> for GenerateFunction<'ast> {
51775177
type_,
51785178
constructor: ModuleValueConstructor::Fn { name, .. },
51795179
..
5180-
} if name == "" => {
5180+
} if name.is_empty() => {
51815181
return self.try_save_function_from_other_module(
51825182
module_name,
51835183
label,

compiler-core/src/type_/expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ impl<'a, 'b> ExprTyper<'a, 'b> {
14521452
type_: self.new_unbound_var(),
14531453
label,
14541454
module_alias: module_name.clone(),
1455-
module_name: module_name,
1455+
module_name,
14561456
constructor: ModuleValueConstructor::Fn {
14571457
location,
14581458
module: "".into(),

0 commit comments

Comments
 (0)