Skip to content

Commit

Permalink
Allow undocumented_unsafe_blocks in some modules
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Feb 13, 2025
1 parent 170916b commit a42180a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mullvad-api/src/ffi/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#![cfg(not(target_os = "android"))]
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare.

use std::{
ffi::{CStr, CString},
net::SocketAddr,
Expand Down
2 changes: 2 additions & 0 deletions mullvad-daemon/src/macos_launch_daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
//! must be checked so that the user can be directed to approve the launch
//! daemon in the system settings.
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare.

use libc::c_longlong;
use objc2::{class, msg_send, runtime::AnyObject, Encode, Encoding, RefEncode};
use std::ffi::CStr;
Expand Down
2 changes: 2 additions & 0 deletions talpid-core/src/dns/macos.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare.

use parking_lot::Mutex;
use std::{
collections::{BTreeSet, HashMap},
Expand Down
2 changes: 2 additions & 0 deletions talpid-openvpn/src/wintun.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare.

use once_cell::sync::OnceCell;
use std::{ffi::CStr, fmt, io, mem, os::windows::io::RawHandle, path::Path, ptr};
use talpid_types::{win32_err, ErrorExt};
Expand Down
2 changes: 2 additions & 0 deletions talpid-routing/src/unix/macos/interface.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare.

use futures::channel::mpsc::{self, UnboundedReceiver, UnboundedSender};
use ipnetwork::IpNetwork;
use nix::{
Expand Down
2 changes: 2 additions & 0 deletions talpid-windows/src/net.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare.

use socket2::SockAddr;
use std::{
ffi::{OsStr, OsString},
Expand Down
2 changes: 2 additions & 0 deletions talpid-windows/src/process.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare

use std::{
ffi::{c_char, CStr},
io, mem,
Expand Down
2 changes: 2 additions & 0 deletions talpid-windows/src/sync.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::undocumented_unsafe_blocks)] // Remove me if you dare.

use std::{io, ptr};
use windows_sys::Win32::{
Foundation::{CloseHandle, DuplicateHandle, BOOL, DUPLICATE_SAME_ACCESS, HANDLE},
Expand Down

0 comments on commit a42180a

Please sign in to comment.