Skip to content

Commit e6a9af4

Browse files
committed
cleanup
Signed-off-by: Jess Frazelle <[email protected]>
1 parent 34d0357 commit e6a9af4

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modeling-cmds/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ serde_json = { version = "1.0.139", optional = true }
3737
slog = { version = "2.7.0", optional = true }
3838
tabled = { version = "0.18", optional = true }
3939
ts-rs = { version = "10.1.0", optional = true, features = [
40+
"chrono-impl",
4041
"uuid-impl",
4142
"no-serde-warnings",
4243
"serde-json-impl",

modeling-cmds/src/datetime.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
use schemars::JsonSchema;
2-
use serde::{Deserialize, Serialize};
3-
41
/// A wrapper for chrono types, since we need to impl Value for them.
5-
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Default, Deserialize, Serialize, JsonSchema)]
2+
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Default)]
63
pub struct DateTimeLocal {
74
value: chrono::DateTime<chrono::Local>,
85
}

modeling-cmds/src/format/fbx.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use crate::datetime::DateTimeLocal;
2-
31
use parse_display::{Display, FromStr};
42
use schemars::JsonSchema;
53
use serde::{Deserialize, Serialize};
@@ -30,7 +28,7 @@ pub mod export {
3028
pub storage: Storage,
3129

3230
/// Timestamp override.
33-
pub created: Option<DateTimeLocal>,
31+
pub created: Option<chrono::DateTime<chrono::Utc>>,
3432
}
3533

3634
impl std::fmt::Display for Options {

modeling-cmds/src/format/step.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use schemars::JsonSchema;
33
use serde::{Deserialize, Serialize};
44

55
use crate::coord;
6-
use crate::datetime::DateTimeLocal;
76

87
/// Import models in STEP format.
98
pub mod import {
@@ -41,7 +40,7 @@ pub mod export {
4140
pub coords: coord::System,
4241

4342
/// Timestamp override.
44-
pub created: Option<DateTimeLocal>,
43+
pub created: Option<chrono::DateTime<chrono::Utc>>,
4544
}
4645

4746
impl Default for Options {

0 commit comments

Comments
 (0)