Skip to content

Commit a7cb1cf

Browse files
committed
Use new types syntax
1 parent 5b42028 commit a7cb1cf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rules/dirent/tgt_unsafe.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// Copyright (c) 2022-present INESC-ID.
22
// Distributed under the MIT license that can be found in the LICENSE file.
33

4-
fn types() -> Result<(), Box<dyn std::error::Error>> {
5-
let t1: *mut ::libc::DIR = std::ptr::null_mut();
6-
Ok(())
4+
fn t1() -> *mut ::libc::DIR {
5+
std::ptr::null_mut()
76
}
87

98
unsafe fn f1(a0: *const u8) -> *mut ::libc::DIR {

0 commit comments

Comments
 (0)