Skip to content

Commit

Permalink
Resolve warning after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
gussmith23 committed Nov 24, 2020
1 parent f9bc37c commit c5b41e4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ pub fn find_vars(expr: &Expr, id: Id) -> Vec<String> {
assert_eq!(expr[id].nodes.len(), 1);
&expr[id].nodes[0]
} {
Language::RelayOperatorCall(ids) | Language::AccessConcatenateVarargs(ids) => {
for id in ids.iter() {
find_vars_recursive_helper(set, expr, *id);
}
}
Language::RelayOperator(_) => {}
Language::RelayKernelLayout(_) => {}
Language::RelayActivationLayout(_) => {}
Expand All @@ -311,7 +306,10 @@ pub fn find_vars(expr: &Expr, id: Id) -> Vec<String> {
find_vars_recursive_helper(set, expr, id);
}
// Box<[Id]>
Language::RelayOperatorCall(ids) | Language::List(ids) | Language::Shape(ids) => {
Language::RelayOperatorCall(ids)
| Language::AccessConcatenateVarargs(ids)
| Language::List(ids)
| Language::Shape(ids) => {
for id in ids.iter() {
find_vars_recursive_helper(set, expr, *id);
}
Expand Down

0 comments on commit c5b41e4

Please sign in to comment.