Skip to content

Commit

Permalink
hoge
Browse files Browse the repository at this point in the history
  • Loading branch information
kobkaz committed Apr 22, 2024
1 parent 4ebb48b commit ee0e364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kble/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ pub async fn run(config: &Config) -> Result<()> {
let mut edges = vec![];
for (stream_name, sink_name) in config.links().iter() {
let Some(stream) = streams.remove(stream_name.as_str()) else {
return Err(anyhow!("No such plug: {stream_name}"));
unreachable!("No such plug: {stream_name}");
};
let Some(sink) = sinks.remove(sink_name.as_str()) else {
return Err(anyhow!("No such plug or already used: {sink_name}"));
unreachable!("No such plug or already used: {sink_name}");
};
let edge = stream.forward(sink);
edges.push(edge);
Expand Down

0 comments on commit ee0e364

Please sign in to comment.