1
Fork 0
mirror of https://github.com/RGBCube/bonfire.v synced 2025-07-28 14:37:44 +00:00

Inline method

This commit is contained in:
RGBCube 2022-12-16 22:31:11 +03:00
parent e7ae4727da
commit 6c417bda20

View file

@ -8,6 +8,7 @@ pub struct SnowflakeHolder {
}
// created_at returns the time the snowflake was created.
[inline]
fn (sh SnowflakeHolder) created_at() Time {
return sh.id.created_at()
}