# HG changeset patch # User holycleugh # Date 1546159137 18000 # Node ID 0ceeffe67ec466c5c3b337b2d08fc8fd7c5af058 # Parent 31618a75f251c35b60f7b73b966ec9972d3a831c style: rustfmt diff -r 31618a75f251 -r 0ceeffe67ec4 pam/src/conv.rs --- 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 {