Skip to content

Commit

Permalink
Cargo clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Oct 30, 2023
1 parent 1c3e829 commit 0cfbd08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion parser/src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3131,7 +3131,7 @@ impl Parser {
self.expect(Kind::Comma)?;
}
}
if type_params.len() == 0 {
if type_params.is_empty() {
return Err(self.unexpected_token_new(
node,
vec![Kind::Identifier, Kind::Pow, Kind::Mul],
Expand Down
2 changes: 1 addition & 1 deletion typechecker/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl BuildManager {
let mut new_imports = vec![];
let mut discovered_files = vec![];
for state in current_files {
let resolved_imports = self.resolve_file_imports(&state);
let resolved_imports = self.resolve_file_imports(state);
// check if the resolved_imports are not in the current files and add them to the new imports
for (_, state) in resolved_imports {
if !self.modules.contains_key(&state.file.module_name()) {
Expand Down
2 changes: 1 addition & 1 deletion typechecker/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
ruff_python_import_resolver as ruff_python_resolver,
ruff_python_import_resolver::resolver,
ruff_python_import_resolver::{
self, import_result::ImportResult, module_descriptor::ImportModuleDescriptor,
import_result::ImportResult, module_descriptor::ImportModuleDescriptor,
},
semantic_analyzer::SemanticAnalyzer,
symbol_table::SymbolTable,
Expand Down
3 changes: 1 addition & 2 deletions typechecker/src/symbol_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ use enderpy_python_parser::ast::{self, Node};
use std::{collections::HashMap, fmt::Display};

use crate::{
nodes::ImportKinds,
ruff_python_import_resolver::{
import_result::ImportResult, module_descriptor::ImportModuleDescriptor,
import_result::ImportResult,
},
};

Expand Down

0 comments on commit 0cfbd08

Please sign in to comment.