From 64a7187238c4f291f254bd6eb58138a3a6534898 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 4 Oct 2021 22:56:24 +0200 Subject: chore: remove No*Permissions structs (#12316) These are confusing. They say they are "for users that don't care about permissions", but that isn't correct. `NoTimersPermissions` disables permissions instead of enabling them. I would argue that implementors should decide what permissions they want themselves, and not take our opinionated permissions struct. --- ext/ffi/lib.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ext/ffi/lib.rs') diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index 673f83472..e0430366c 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -37,14 +37,6 @@ pub trait FfiPermissions { fn check(&mut self, path: &str) -> Result<(), AnyError>; } -pub struct NoFfiPermissions; - -impl FfiPermissions for NoFfiPermissions { - fn check(&mut self, _path: &str) -> Result<(), AnyError> { - Ok(()) - } -} - struct Symbol { cif: libffi::middle::Cif, ptr: libffi::middle::CodePtr, -- cgit v1.2.3