Skip to content

Commit

Permalink
Fix clippy (aws#4166)
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose committed Aug 25, 2023
1 parent e04acc3 commit 625ff98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bindings/rust/s2n-tls-tokio/tests/common/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ impl Overrides {
}
}

unsafe impl Send for Overrides {}
unsafe impl Sync for Overrides {}

pub struct TestStream {
stream: TcpStream,
overrides: Arc<Overrides>,
Expand Down
2 changes: 1 addition & 1 deletion bindings/rust/s2n-tls/src/callbacks/pkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl PrivateKeyOperation {
/// Sets the output of the operation
pub fn set_output(self, conn: &mut Connection, buf: &[u8]) -> Result<(), Error> {
let buf_len: u32 = buf.len().try_into().map_err(|_| Error::INVALID_INPUT)?;
let buf_ptr = buf.as_ptr() as *const u8;
let buf_ptr = buf.as_ptr();
unsafe {
s2n_async_pkey_op_set_output(self.raw.as_ptr(), buf_ptr, buf_len).into_result()?;
s2n_async_pkey_op_apply(self.raw.as_ptr(), conn.as_ptr()).into_result()?;
Expand Down

0 comments on commit 625ff98

Please sign in to comment.