GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 7516b820 authored by K900's avatar K900
Browse files

rustfmt

parent 495a772e
Pipeline #28902579 passed with stage
in 4 minutes and 5 seconds
......@@ -81,7 +81,9 @@ fn encode_endpoint(endpoint: Option<SocketAddr>) -> wgctrl_sys::wg_peer__bindgen
}
}
fn encode_peers(peers: Vec<PeerConfigBuilder>) -> (*mut wgctrl_sys::wg_peer, *mut wgctrl_sys::wg_peer) {
fn encode_peers(
peers: Vec<PeerConfigBuilder>,
) -> (*mut wgctrl_sys::wg_peer, *mut wgctrl_sys::wg_peer) {
let mut first_peer = ptr::null_mut();
let mut last_peer: *mut wgctrl_sys::wg_peer = ptr::null_mut();
......
......@@ -121,8 +121,9 @@ impl Key {
let mut decoded = wgctrl_sys::wg_key::default();
let key_str = CString::new(key)?;
let result =
unsafe { wgctrl_sys::wg_key_from_base64(decoded.as_mut_ptr(), key_str.as_ptr() as *mut _) };
let result = unsafe {
wgctrl_sys::wg_key_from_base64(decoded.as_mut_ptr(), key_str.as_ptr() as *mut _)
};
if result == 0 {
Ok(Self { 0: decoded })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment