chore: move error handling todos from msgs into comments

This commit is contained in:
MultisampledNight 2024-01-21 21:08:27 +01:00
commit bbde1c84ca
No known key found for this signature in database
GPG key ID: C81EF9B053977241
3 changed files with 8 additions and 8 deletions

View file

@ -77,7 +77,8 @@ fn reverse_and_type_edges(edges: Map<Socket, Set<Socket>>) -> Map<id::Input, id:
let input = id::Input(input.into());
let previous = rev_edges.insert(input, output.clone());
if let Some(previous) = previous {
panic!("two or more outputs referred to the same input {previous:#?} — handle me better later with a TryFrom impl");
// TODO: handle this with a TryFrom impl
panic!("two or more outputs referred to the same input {previous:#?}");
}
}