Format the voelinctl stream watcher with rustfmt 1.94
The stream-types commit shortened a let-chain in tools/voelinctl/src/engine.rs that rustfmt 1.94 (the CI toolchain) lays out differently from nightly. `cargo fmt --check` over scripts/own-crates.sh now passes on 1.94. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6c1898bf5a
commit
ac4464db7b
1 file changed
+2
-3
@@ -245,9 +245,8 @@ pub async fn run(args: GatewayArgs) -> Result<()> {
|
||||
out.print(format!("streams: {} by {nick} ({}) {:?}", s.id, s.streamer, s.name));
|
||||
}
|
||||
if let Some(wanted) = &args.watch_streamer
|
||||
&& !watching && let Some(s) = streams
|
||||
.iter()
|
||||
.find(|s| nicknames.get(&s.streamer).is_some_and(|n| n == wanted))
|
||||
&& !watching && let Some(s) =
|
||||
streams.iter().find(|s| nicknames.get(&s.streamer).is_some_and(|n| n == wanted))
|
||||
{
|
||||
watching = true;
|
||||
out.print(format!("watching {}", s.id));
|
||||
|
||||
Reference in new issue
Block a user