summaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/sandbox-agent.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/bin/sandbox-agent.rs b/src/bin/sandbox-agent.rs
index ce34d50..078b67c 100644
--- a/src/bin/sandbox-agent.rs
+++ b/src/bin/sandbox-agent.rs
@@ -28,12 +28,9 @@ fn main() {
}
i += 1;
}
- let (hub, token) = match (hub, token) {
- (Some(h), Some(t)) => (h, t),
- _ => {
- eprintln!("usage: sandbox-agent --hub HOST:PORT --token T [--profile P] [--ttl SECS]");
- std::process::exit(2);
- }
+ let (Some(hub), Some(token)) = (hub, token) else {
+ eprintln!("usage: sandbox-agent --hub HOST:PORT --token T [--profile P] [--ttl SECS]");
+ std::process::exit(2);
};
let opts = aur_build::sandbox::agent::AgentOptions {
hub,