mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-20 07:03:16 +00:00
remove u128 compare
This commit is contained in:
1 parent
633253647f
commit
0d0957cea5
6 files changed
+7
-7
No files matched your search
@@ -44,8 +44,8 @@ pub mod record;
|
||||
mod vpx;
|
||||
|
||||
#[inline]
|
||||
pub fn would_block_if_equal(old: &mut Vec<u128>, b: &[u8]) -> std::io::Result<()> {
|
||||
let b = unsafe { std::slice::from_raw_parts::<u128>(b.as_ptr() as _, b.len() / 16) };
|
||||
pub fn would_block_if_equal(old: &mut Vec<u8>, b: &[u8]) -> std::io::Result<()> {
|
||||
// does this really help?
|
||||
if b == &old[..] {
|
||||
return Err(std::io::ErrorKind::WouldBlock.into());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user