Skip to content

Commit

Permalink
Review suggestion: rename some vars
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Jan 8, 2024
1 parent b3a4a48 commit 76ea4e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ impl OpType {
/// Returns the number of ports for the given direction.
#[inline]
pub fn port_count(&self, dir: Direction) -> usize {
let static_input = self.static_port_kind(dir).is_some() as usize;
let has_static_port = self.static_port_kind(dir).is_some();
let non_df_count = self.non_df_port_count(dir);
self.value_port_count(dir) + static_input + non_df_count
self.value_port_count(dir) + has_static_port as usize + non_df_count
}

/// Returns the number of inputs ports for the operation.
Expand Down

0 comments on commit 76ea4e6

Please sign in to comment.