Skip to content

Commit 99d28e5

Browse files
formatting
1 parent 9a6759f commit 99d28e5

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

sdk-core/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ val compileRustToWasm by
3939
outputs.file(wasmFile)
4040
}
4141

42+
val cargoFmt by
43+
tasks.registering(Exec::class) {
44+
group = "formatting"
45+
description = "Format the Rust WASM wrapper crate with cargo fmt"
46+
workingDir = rustSrcDir
47+
commandLine("cargo", "fmt")
48+
}
49+
50+
tasks.matching { it.name == "spotlessApply" }.configureEach { dependsOn(cargoFmt) }
51+
4252
val copyWasm by
4353
tasks.registering(Copy::class) {
4454
group = "build"

sdk-core/src/main/java/dev/restate/sdk/core/sharedcore/SharedCoreInstance.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@
2929
class SharedCoreInstance {
3030

3131
private static final Logger LOG = LogManager.getLogger(SharedCoreInstance.class);
32-
private static final CBORMapper CBOR = CBORMapper.builder()
32+
private static final CBORMapper CBOR =
33+
CBORMapper.builder()
3334
.defaultPropertyInclusion(
34-
JsonInclude.Value.construct(
35-
JsonInclude.Include.NON_NULL,
36-
JsonInclude.Include.NON_NULL
37-
)
38-
)
35+
JsonInclude.Value.construct(
36+
JsonInclude.Include.NON_NULL, JsonInclude.Include.NON_NULL))
3937
.build();
4038
private static final WasmModule WASM_MODULE =
4139
dev.restate.sdk.core.sharedcore.generated.SharedCoreWasm.load();

0 commit comments

Comments
 (0)