Commit 06620b44 authored by Sven Liefgen's avatar Sven Liefgen
Browse files

Getter do not need to be unsafe

parent 0a3b6b2f
......@@ -94,13 +94,13 @@ pub unsafe fn timestamp_cycle(kind: Kind, row: usize, id: TimestampId) {
/// Create a clock value without saving it to a table
#[inline(always)]
pub unsafe fn get_timestamp_clock() -> Instant {
pub fn get_timestamp_clock() -> Instant {
Instant::now()
}
/// Create a cycle value without saving it to a table
#[inline(always)]
pub unsafe fn get_timestamp_cycle() -> u64 {
pub fn get_timestamp_cycle() -> u64 {
current_cycle()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment