changeset 27:0ceeffe67ec4

style: rustfmt
author holycleugh <holycleugh>
date Sun, 30 Dec 2018 03:38:57 -0500
parents 31618a75f251
children 81a9f0479e50
files pam/src/conv.rs
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/pam/src/conv.rs	Thu Apr 19 14:08:54 2018 -0600
+++ b/pam/src/conv.rs	Sun Dec 30 03:38:57 2018 -0500
@@ -1,6 +1,6 @@
 use libc::{c_char, c_int};
+use std::ffi::{CStr, CString};
 use std::ptr;
-use std::ffi::{CStr, CString};
 
 use constants::PamResultCode;
 use constants::*;
@@ -28,12 +28,13 @@
 /// will be relayed back.
 #[repr(C)]
 pub struct PamConv {
-    conv: extern "C" fn(num_msg: c_int,
-                        pam_message: &&PamMessage,
-                        pam_response: &mut *const PamResponse,
-                        appdata_ptr: *const AppDataPtr)
-                        -> PamResultCode,
-    appdata_ptr: *const AppDataPtr,
+    conv: extern "C" fn(
+        num_msg: c_int,
+        pam_message: &&PamMessage,
+        pam_response: &mut *const PamResponse,
+        appdata_ptr: *const AppDataPtr,
+    ) -> PamResultCode,
+    ppdata_ptr: *const AppDataPtr,
 }
 
 impl PamConv {