File tree 3 files changed +11
-13
lines changed 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 16
16
platform : [ubuntu-latest, macos-latest, windows-latest]
17
17
runs-on : ${{ matrix.platform }}
18
18
steps :
19
- - uses : actions/checkout@v3
19
+ - uses : actions/checkout@v4
20
20
- uses : dtolnay/rust-toolchain@stable
21
21
- run : cargo test --all-features --all-targets
22
22
@@ -26,14 +26,14 @@ jobs:
26
26
platform : [ ubuntu-latest, macos-latest, windows-latest ]
27
27
runs-on : ${{ matrix.platform }}
28
28
steps :
29
- - uses : actions/checkout@v3
29
+ - uses : actions/checkout@v4
30
30
- uses : dtolnay/rust-toolchain@stable
31
31
- run : cargo check --all-features --all-targets
32
32
33
33
clippy :
34
34
name : Clippy
35
35
runs-on : ubuntu-latest
36
36
steps :
37
- - uses : actions/checkout@v3
37
+ - uses : actions/checkout@v4
38
38
- uses : dtolnay/rust-toolchain@clippy
39
39
- run : cargo clippy --all-features --tests -- -Dclippy::all -Dclippy::pedantic
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ keywords = [
16
16
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
17
17
18
18
[dependencies ]
19
- anydate = " 0.3 .0"
20
- anyhow = " 1.0.75 "
21
- chrono = { version = " 0.4.31 " , features = [" serde" ] }
22
- clap = { version = " 4.4.7 " , features = [" derive" ] }
19
+ anydate = " 0.4 .0"
20
+ anyhow = " 1.0.83 "
21
+ chrono = { version = " 0.4.38 " , features = [" serde" ] }
22
+ clap = { version = " 4.5.4 " , features = [" derive" ] }
23
23
gjson = " 0.8.1"
24
- serde = { version = " 1.0.192 " , features = [" derive" ] }
25
- serde_json = " 1.0.108 "
26
- thiserror = " 1.0.50 "
24
+ serde = { version = " 1.0.201 " , features = [" derive" ] }
25
+ serde_json = " 1.0.117 "
26
+ thiserror = " 1.0.60 "
27
27
28
28
[dev-dependencies ]
29
29
criterion = { version = " 0.5.1" , features = [" html_reports" ] }
Original file line number Diff line number Diff line change @@ -776,9 +776,7 @@ impl Expression for COERCEString {
776
776
Value :: DateTime ( dt) => Ok ( Value :: String (
777
777
dt. to_rfc3339_opts ( SecondsFormat :: AutoSi , true ) ,
778
778
) ) ,
779
- _ => Err ( Error :: UnsupportedCOERCE (
780
- format ! ( "{value} COERCE datetime" , ) ,
781
- ) ) ,
779
+ Value :: Array ( _) |Value :: Object ( _) => { Ok ( Value :: String ( value. to_string ( ) ) ) }
782
780
}
783
781
}
784
782
}
You can’t perform that action at this time.
0 commit comments