switch to rust 2024

This commit is contained in:
🪞👃🪞 2025-08-16 07:36:07 +03:00
parent 74b497cf3a
commit f87a5c14f9
7 changed files with 12 additions and 12 deletions

View file

@ -54,10 +54,10 @@ impl<'j> Jack<'j> {
/// Run something with the client.
pub fn with_client <T> (&self, op: impl FnOnce(&Client)->T) -> T {
match &*self.0.read().unwrap() {
Inert => panic!("jack client not activated"),
Inactive(ref client) => op(client),
Activating => panic!("jack client has not finished activation"),
Active(ref client) => op(client.as_client()),
Inert => panic!("jack client not activated"),
Inactive(client) => op(client),
Activating => panic!("jack client has not finished activation"),
Active(client) => op(client.as_client()),
}
}
}