Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wmedrano authored Sep 14, 2024
1 parent b7c59ce commit bf97a2e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/client/client_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ impl Client {
pub fn new(client_name: &str, options: ClientOptions) -> Result<(Self, ClientStatus), Error> {
Self::new_with_server_name(client_name, options, None)
}

pub fn new_with_server_name(client_name: &str, options: ClientOptions, server_name: Option<&str>) -> Result<(Self, ClientStatus), Error> {

pub fn new_with_server_name(
client_name: &str,
options: ClientOptions,
server_name: Option<&str>,
) -> Result<(Self, ClientStatus), Error> {
let _m = CREATE_OR_DESTROY_CLIENT_MUTEX.lock().ok();
// All of the jack_sys functions below assume the client library is loaded and will panic if
// it is not
Expand All @@ -71,8 +75,13 @@ impl Client {
let server_name = ffi::CString::new(server_name).unwrap();
let options = options | ClientOptions::SERVER_NAME;
unsafe {
j::jack_client_open_with_server_name(client_name.as_ptr(), options.bits(), &mut status_bits, server_name.as_ptr())
}
j::jack_client_open_with_server_name(
client_name.as_ptr(),
options.bits(),
&mut status_bits,
server_name.as_ptr(),
)
}
} else {
unsafe {
j::jack_client_open(client_name.as_ptr(), options.bits(), &mut status_bits)
Expand Down

0 comments on commit bf97a2e

Please sign in to comment.