Skip to content

Commit 08790f9

Browse files
fmt
1 parent 4277e8e commit 08790f9

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

ffi/src/connector/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ pub mod ffi {
143143
connector.attach_static_channel(cliprdr);
144144
Ok(())
145145
}
146-
147146
}
148147

149148
#[diplomat::opaque]

ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub mod graphics;
1111
pub mod input;
1212
pub mod log;
1313
pub mod pdu;
14+
pub mod rdcleanpath;
1415
pub mod session;
1516
pub mod svc;
1617
pub mod utils;
17-
pub mod rdcleanpath;

ffi/src/rdcleanpath.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,19 @@ pub mod ffi {
3434
x224_pdu: &VecU8,
3535
destination: &str,
3636
proxy_auth: &str,
37-
pcb: &OptionalString
37+
pcb: &OptionalString,
3838
) -> Result<Box<RdCleanPathPdu>, Box<IronRdpError>> {
3939
let x224_pdu = &x224_pdu.0;
4040
let destination = destination.to_string();
4141
let proxy_auth = proxy_auth.to_string();
4242

43-
let cleanpath_pdu =
44-
ironrdp::rdclean_path::RDCleanPathPdu::new_request(x224_pdu.to_owned(), destination, proxy_auth, pcb.into())
45-
.map_err(|_| IronRdpErrorKind::EncodeError)?;
43+
let cleanpath_pdu = ironrdp::rdclean_path::RDCleanPathPdu::new_request(
44+
x224_pdu.to_owned(),
45+
destination,
46+
proxy_auth,
47+
pcb.into(),
48+
)
49+
.map_err(|_| IronRdpErrorKind::EncodeError)?;
4650

4751
Ok(Box::new(RdCleanPathPdu(Some(cleanpath_pdu))))
4852
}
@@ -71,7 +75,8 @@ pub mod ffi {
7175
return Err(ValueConsumedError::for_item("RdCleanPathPdu").into());
7276
};
7377

74-
let rdclean_path = pdu.into_enum()
78+
let rdclean_path = pdu
79+
.into_enum()
7580
.map(|rd_clean_path| Box::new(RdCleanPath(Some(rd_clean_path))))
7681
.map_err(|_| IronRdpErrorKind::EncodeError)?;
7782

0 commit comments

Comments
 (0)