Skip to content

Commit

Permalink
Use derive(ToJson) where possible
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Lewis <[email protected]>
  • Loading branch information
gmlewis committed Aug 22, 2024
1 parent 75338aa commit c1d8a37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Empty file.
6 changes: 6 additions & 0 deletions pdk/http/method_test.mbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test "Method::to_json works as expected" {
let got = @http.GET.to_json().stringify()
let want =
#|"GET"
assert_eq!(got, want)
}

0 comments on commit c1d8a37

Please sign in to comment.