File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,19 @@ permissions:
26
26
contents : read
27
27
28
28
jobs :
29
- format-check :
29
+ rust-format-check :
30
+ name : Check Rust formatting
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - uses : dtolnay/rust-toolchain@stable
35
+ with :
36
+ components : rustfmt
37
+ - name : Check Rust formatting
38
+ run : |
39
+ cargo fmt --check
40
+
41
+ python-format-check :
30
42
name : Check Python formatting
31
43
runs-on : ubuntu-latest
32
44
steps :
Original file line number Diff line number Diff line change @@ -136,9 +136,7 @@ fn basic_value_from_py_object<'py>(
136
136
schema:: BasicValueType :: Float32 => value:: BasicValue :: Float32 ( v. extract :: < f32 > ( ) ?) ,
137
137
schema:: BasicValueType :: Float64 => value:: BasicValue :: Float64 ( v. extract :: < f64 > ( ) ?) ,
138
138
schema:: BasicValueType :: Range => value:: BasicValue :: Range ( depythonize ( v) ?) ,
139
- schema:: BasicValueType :: Uuid => {
140
- value:: BasicValue :: Uuid ( v. extract :: < uuid:: Uuid > ( ) ?)
141
- }
139
+ schema:: BasicValueType :: Uuid => value:: BasicValue :: Uuid ( v. extract :: < uuid:: Uuid > ( ) ?) ,
142
140
schema:: BasicValueType :: Date => value:: BasicValue :: Date ( v. extract :: < chrono:: NaiveDate > ( ) ?) ,
143
141
schema:: BasicValueType :: Time => value:: BasicValue :: Time ( v. extract :: < chrono:: NaiveTime > ( ) ?) ,
144
142
schema:: BasicValueType :: LocalDateTime => {
You can’t perform that action at this time.
0 commit comments