mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 06:30:54 +00:00
bulk code format fix (#8707)
This commit is contained in:
@@ -135,10 +135,7 @@ fn main() {
|
||||
|
||||
// Analogously, the `index` method is the safe version of `idx`.
|
||||
assert!(read_monster.index("hp").is_ok());
|
||||
assert_eq!(
|
||||
read_monster.index("foo").unwrap_err(),
|
||||
ReaderError::KeyNotFound
|
||||
);
|
||||
assert_eq!(read_monster.index("foo").unwrap_err(), ReaderError::KeyNotFound);
|
||||
|
||||
// Maps can also be indexed by usize. They're stored by key so `coins` are the first element.
|
||||
let monster_coins = read_monster.idx(0);
|
||||
|
||||
Reference in New Issue
Block a user