Skip to content

Commit

Permalink
Less clear in pub use, so used the export explictly
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Nov 7, 2024
1 parent 4bba951 commit fd7e6aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions interpreter/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ impl<'a> Default for Context<'a> {

#[cfg(feature = "chrono")]
{
ctx.add_function("duration", functions::time::duration);
ctx.add_function("timestamp", functions::time::timestamp);
ctx.add_function("duration", functions::duration);
ctx.add_function("timestamp", functions::timestamp);
ctx.add_function("getFullYear", functions::time::timestamp_year);
ctx.add_function("getMonth", functions::time::timestamp_month);
ctx.add_function("getDayOfYear", functions::time::timestamp_year_day);
Expand Down
4 changes: 2 additions & 2 deletions interpreter/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ pub fn exists_one(
}

#[cfg(feature = "chrono")]
pub use time::timestamp as timestamp;
pub use time::timestamp;
#[cfg(feature = "chrono")]
pub use time::duration as duration;
pub use time::duration;

#[cfg(feature = "chrono")]
pub mod time {
Expand Down

0 comments on commit fd7e6aa

Please sign in to comment.