Skip to content

Commit c7bafbe

Browse files
committed
[Rust] Fix warning in test.
1 parent 0fc6d57 commit c7bafbe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/rust/RustGeneratorTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ public void fullGenerateBroadUseCase() throws IOException, InterruptedException
151151
assertRustBuildable(generatedRust, Optional.of("example-schema"));
152152
}
153153

154-
private File writeCargoFolderWrapper(final String name, final String generatedRust, final File folder) throws
155-
IOException
154+
private File writeCargoFolderWrapper(final String name, final String generatedRust, final File folder)
155+
throws IOException
156156
{
157157
final File src = new File(folder, "src");
158-
src.mkdirs();
158+
assertTrue(src.mkdirs());
159159

160160
final File cargo = new File(folder, "Cargo.toml");
161161
try (Writer cargoWriter = Files.newBufferedWriter(cargo.toPath()))
@@ -229,13 +229,11 @@ private void assertRustBuildable(final String generatedRust, final Optional<Stri
229229
assertTrue("Generated Rust should be buildable with cargo", cargoCheckInDirectory(folder));
230230
}
231231

232-
private String assertSchemaInterpretableAsRust(final String localResourceSchema)
232+
private void assertSchemaInterpretableAsRust(final String localResourceSchema)
233233
throws IOException, InterruptedException
234234
{
235235
final String rust = fullGenerateForResource(outputManager, localResourceSchema);
236236
assertRustBuildable(rust, Optional.of(localResourceSchema));
237-
238-
return rust;
239237
}
240238

241239
@Test

0 commit comments

Comments
 (0)