Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Fixed a really important clippy result
Browse files Browse the repository at this point in the history
  • Loading branch information
chotchki committed Aug 30, 2021
1 parent 028fe2e commit 4ff3aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/analyzer/definition_lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ impl DefinitionLookup {
}

let mut constraints = vec![];
for r in rows.iter() {
'outer: for r in rows.iter() {
let name = match r.get_column_not_null(pg_constraint::column_name)? {
BaseSqlTypes::Text(t) => t,
_ => return Err(DefinitionLookupError::ColumnWrongType()),
Expand All @@ -283,7 +283,7 @@ impl DefinitionLookup {
name,
index: i.clone(),
}));
break;
break 'outer;
}
}
return Err(DefinitionLookupError::IndexDoesNotExist(index_id));
Expand Down

0 comments on commit 4ff3aee

Please sign in to comment.