Skip to content

Commit 4ebbe4f

Browse files
committed
fmt
1 parent ca7f969 commit 4ebbe4f

File tree

8 files changed

+8
-12
lines changed

8 files changed

+8
-12
lines changed

builtin/failure.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/// }
3333
/// @json.inspect(err, content=["Failure", "Test assertion failed"])
3434
/// ```
35-
pub(all) suberror Failure String derive(ToJson(style="flat"), Show)
35+
pub(all) suberror Failure String derive(ToJson, Show)
3636
3737
///|
3838
/// Raises a `Failure` error with a given message and source location.

builtin/guard_feature_test.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum Expr {
2020
Div(Expr, Expr)
2121
Lit(Int)
2222
Var(String)
23-
} derive(Show, ToJson(style="flat"), Eq)
23+
} derive(Show, ToJson, Eq)
2424

2525
///|
2626
fn simplify(e : Expr) -> Expr {

error/error_test.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ test "protect2 & finally raise error" {
149149
}
150150
151151
///|
152-
suberror ErrWithToJson Int derive(ToJson(style="flat"))
152+
suberror ErrWithToJson Int derive(ToJson)
153153
154154
///|
155155
suberror ErrWithoutToJson Int

json/from_json.mbt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
// limitations under the License.
1414

1515
///|
16-
pub(all) suberror JsonDecodeError (JsonPath, String) derive (
17-
Eq,
18-
Show,
19-
ToJson(style="flat"),
20-
)
16+
pub(all) suberror JsonDecodeError (JsonPath, String) derive(Eq, Show, ToJson)
2117

2218
///|
2319
/// Trait for types that can be converted from `Json`

json/from_to_json_test.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ enum Expr {
1919
Mul(Expr, Expr)
2020
Div(Expr, Expr)
2121
Val(String)
22-
} derive(ToJson(style="flat"), FromJson(style="flat"), Show, Eq)
22+
} derive(ToJson, FromJson, Show, Eq)
2323

2424
///|
2525
test {

json/json_inspect_test.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum Color {
3434
Red
3535
Green
3636
Blue
37-
} derive(ToJson(style="flat"))
37+
} derive(ToJson)
3838

3939
///|
4040
struct Line {

json/types.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub(all) suberror ParseError {
2424
InvalidEof
2525
InvalidNumber(Position, String)
2626
InvalidIdentEscape(Position)
27-
} derive(Eq, ToJson(style="flat"))
27+
} derive(Eq, ToJson)
2828

2929
///|
3030
pub impl Show for ParseError with output(self, logger) {

rational/rational.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ fn[T] overflow_error() -> T raise RationalError {
271271
///
272272
#deprecated("Use @rational in module moonbitlang/x instead. Note that you need to rename Rational to Rational64.")
273273
#coverage.skip
274-
pub(all) suberror RationalError String derive(Show, ToJson(style="flat"))
274+
pub(all) suberror RationalError String derive(Show, ToJson)
275275

276276
///|
277277
/// Compares two `RationalError` values for equality.

0 commit comments

Comments
 (0)