Skip to content

Commit

Permalink
Fix compilation errors (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie authored Oct 26, 2023
1 parent cbb0503 commit de70319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion selene-lib/src/ast_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ mod strip_parentheses;
pub mod visit_nodes;

pub use extract_static_token::extract_static_token;
pub use loop_tracker::LoopTracker;
pub use purge_trivia::purge_trivia;
pub use side_effects::HasSideEffects;
pub use strip_parentheses::strip_parentheses;
Expand Down
7 changes: 3 additions & 4 deletions selene-lib/src/lints/high_cyclomatic_complexity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ fn count_suffix_complexity(suffix: &ast::Suffix, starting_complexity: u16) -> u1
ast::Suffix::Index(ast::Index::Brackets { expression, .. }) => {
complexity = count_expression_complexity(expression, complexity)
}
#[cfg_attr(
feature = "force_exhaustive_checks",
deny(non_exhaustive_omitted_patterns)
)]
ast::Suffix::Index(ast::Index::Dot { .. }) => {
// Dot indexing doesn't contribute to complexity
}
ast::Suffix::Call(call) => match call {
ast::Call::AnonymousCall(arguments) => {
complexity = count_arguments_complexity(arguments, complexity)
Expand Down

0 comments on commit de70319

Please sign in to comment.