Skip to content

Commit b9a78c2

Browse files
committed
Format code.
1 parent 6001432 commit b9a78c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jar.enabled = false
171171
subprojects {
172172
apply plugin: 'java-library'
173173
apply plugin: 'jvm-test-suite'
174-
// apply plugin: 'checkstyle'
174+
apply plugin: 'checkstyle'
175175

176176
group = sbeGroup
177177
version = sbeVersion

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ static void generateDecoderVarData(
11391139

11401140
// function to return slice form given coord
11411141
indent(sb, level, "#[inline]\n");
1142-
indent(sb, level, "pub fn %s_slice(&'a self, coordinates: (usize, usize)) -> &'a [u8] {\n", propertyName);
1142+
indent(sb, level, "pub fn %s_slice(&'a self, coord: (usize, usize)) -> &'a [u8] {\n", propertyName);
11431143

11441144
if (varDataToken.version() > 0)
11451145
{
@@ -1149,8 +1149,8 @@ static void generateDecoderVarData(
11491149
indent(sb, level + 1, "}\n\n");
11501150
}
11511151

1152-
indent(sb, level + 1, "debug_assert!(self.get_limit() >= coordinates.0 + coordinates.1);\n");
1153-
indent(sb, level + 1, "self.get_buf().get_slice_at(coordinates.0, coordinates.1)\n");
1152+
indent(sb, level + 1, "debug_assert!(self.get_limit() >= coord.0 + coord.1);\n");
1153+
indent(sb, level + 1, "self.get_buf().get_slice_at(coord.0, coord.1)\n");
11541154
indent(sb, level, "}\n\n");
11551155

11561156
i += varDataToken.componentTokenCount();

0 commit comments

Comments
 (0)