Skip to content

Commit 3aca9e8

Browse files
Copilotnunoplopes
andauthored
Remove unnecessary unsafe from time refcount rules (#495)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Nuno Lopes <nuno.lopes@tecnico.ulisboa.pt>
1 parent 1b3c308 commit 3aca9e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎rules/time/tgt_refcount.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ fn f8(a0: Ptr<Timeval>, a1: AnyPtr) -> i32 {
164164
}
165165
}
166166

167-
unsafe fn f9() -> nix::time::ClockId {
167+
fn f9() -> nix::time::ClockId {
168168
nix::time::ClockId::CLOCK_REALTIME
169169
}
170170

171-
unsafe fn f10() -> nix::time::ClockId {
171+
fn f10() -> nix::time::ClockId {
172172
nix::time::ClockId::CLOCK_MONOTONIC
173173
}
174174

175175
#[cfg(target_os = "linux")]
176-
unsafe fn f11() -> nix::time::ClockId {
176+
fn f11() -> nix::time::ClockId {
177177
nix::time::ClockId::CLOCK_MONOTONIC_RAW
178178
}

0 commit comments

Comments
 (0)