Skip to content

Commit f3133ac

Browse files
deny unsafe op in unsafe fn in all new code
1 parent cae7f30 commit f3133ac

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pgrx/src/array.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
1010
#![allow(clippy::precedence)]
1111
#![allow(unused)]
12+
#![deny(unsafe_op_in_unsafe_fn)]
1213
use crate::datum::{Array, BorrowDatum, Datum};
1314
use crate::layout::{Align, Layout};
1415
use crate::nullable::Nullable;

pgrx/src/text.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![deny(unsafe_op_in_unsafe_fn)]
12
use crate::datum::BorrowDatum;
23
use crate::layout::PassBy;
34
use crate::pgrx_sql_entity_graph::metadata::{

0 commit comments

Comments
 (0)