Skip to content

Commit

Permalink
remove space
Browse files Browse the repository at this point in the history
  • Loading branch information
fawdlstty committed Feb 25, 2025
1 parent e3c966c commit 8d778de
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/rust_generated/my_game/sample/monster_generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ pub unsafe fn root_as_monster_unchecked(buf: &[u8]) -> Monster {
/// # Safety
/// Callers must trust the given bytes do indeed contain a valid size prefixed `Monster`.
pub unsafe fn size_prefixed_root_as_monster_unchecked(buf: &[u8]) -> Monster {
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster> (buf) }
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster>(buf) }
}
#[inline]
pub fn finish_monster_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(
Expand Down
2 changes: 1 addition & 1 deletion src/idl_gen_rust.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ class RustGenerator : public BaseGenerator {
"pub unsafe fn size_prefixed_root_as_{{STRUCT_FN}}"
"_unchecked(buf: &[u8]) -> {{STRUCT_TY}} {";
code_ +=
" unsafe { flatbuffers::size_prefixed_root_unchecked::<{{STRUCT_TY}}> "
" unsafe { flatbuffers::size_prefixed_root_unchecked::<{{STRUCT_TY}}>"
"(buf) }";
code_ += "}";

Expand Down
2 changes: 1 addition & 1 deletion tests/arrays_test/my_game/example/array_table_generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub unsafe fn root_as_array_table_unchecked(buf: &[u8]) -> ArrayTable {
/// # Safety
/// Callers must trust the given bytes do indeed contain a valid size prefixed `ArrayTable`.
pub unsafe fn size_prefixed_root_as_array_table_unchecked(buf: &[u8]) -> ArrayTable {
unsafe { flatbuffers::size_prefixed_root_unchecked::<ArrayTable> (buf) }
unsafe { flatbuffers::size_prefixed_root_unchecked::<ArrayTable>(buf) }
}
pub const ARRAY_TABLE_IDENTIFIER: &str = "ARRT";

Expand Down
2 changes: 1 addition & 1 deletion tests/monster_test/my_game/example/monster_generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ pub unsafe fn root_as_monster_unchecked(buf: &[u8]) -> Monster {
/// # Safety
/// Callers must trust the given bytes do indeed contain a valid size prefixed `Monster`.
pub unsafe fn size_prefixed_root_as_monster_unchecked(buf: &[u8]) -> Monster {
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster> (buf) }
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster>(buf) }
}
pub const MONSTER_IDENTIFIER: &str = "MONS";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2213,7 +2213,7 @@ pub unsafe fn root_as_monster_unchecked(buf: &[u8]) -> Monster {
/// # Safety
/// Callers must trust the given bytes do indeed contain a valid size prefixed `Monster`.
pub unsafe fn size_prefixed_root_as_monster_unchecked(buf: &[u8]) -> Monster {
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster> (buf) }
unsafe { flatbuffers::size_prefixed_root_unchecked::<Monster>(buf) }
}
pub const MONSTER_IDENTIFIER: &str = "MONS";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ pub unsafe fn root_as_scalar_stuff_unchecked(buf: &[u8]) -> ScalarStuff {
/// # Safety
/// Callers must trust the given bytes do indeed contain a valid size prefixed `ScalarStuff`.
pub unsafe fn size_prefixed_root_as_scalar_stuff_unchecked(buf: &[u8]) -> ScalarStuff {
unsafe { flatbuffers::size_prefixed_root_unchecked::<ScalarStuff> (buf) }
unsafe { flatbuffers::size_prefixed_root_unchecked::<ScalarStuff>(buf) }
}
pub const SCALAR_STUFF_IDENTIFIER: &str = "NULL";

Expand Down

0 comments on commit 8d778de

Please sign in to comment.