Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
X-Lap
Commits
06620b44
Commit
06620b44
authored
Feb 08, 2021
by
Sven Liefgen
Browse files
Getter do not need to be unsafe
parent
0a3b6b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
06620b44
...
...
@@ -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
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment