Skip to content

Commit

Permalink
Fix various clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
purefunctor committed Jan 6, 2024
1 parent 818938f commit 887bfbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/analyzer/src/names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct ModuleName(Arc<str>);

impl ModuleName {
pub fn iter(&self) -> impl Iterator<Item = &str> {
self.0.split(".")
self.0.split('.')
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/analyzer/src/resolver/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl ModuleMap {
}

pub fn file_id(&self, module_name: &ModuleName) -> FileId {
*self.name_to_file.get(&module_name).unwrap()
*self.name_to_file.get(module_name).unwrap()
}

pub fn module_name(&self, file_id: FileId) -> ModuleName {
Expand Down
2 changes: 1 addition & 1 deletion crates/lexing/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,5 +415,5 @@ fn is_lower_start(c: char) -> bool {
}

fn is_hex_digit(c: char) -> bool {
matches!(c, 'a'..='f' | 'A'..='F' | '0'..='9')
c.is_ascii_hexdigit()
}

0 comments on commit 887bfbc

Please sign in to comment.