Introduce new_from_vec in Rust (also fix formatting) (#6599)
authorCasper <casperneo@uchicago.edu>
Thu, 29 Apr 2021 22:23:22 +0000 (18:23 -0400)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 22:23:22 +0000 (18:23 -0400)
commit8fa3dfdb5dfbc0d77af4355fe65d7b127e5c7545
tree468a59238d6ce7e471db95d63e1eb6ec77fa22f2
parent29379e8e49c8936706528d15ecf2702db1590770
Introduce new_from_vec in Rust (also fix formatting) (#6599)

* Introduce new_from_vec in Rust (also fix formatting)

Also, rename `new_with_capacity` to `with_capacity` to match
how `Vec` does it.

* bump rust version

* mut_finished_buffer

Co-authored-by: Casper Neo <cneo@google.com>
rust/flatbuffers/Cargo.toml
rust/flatbuffers/src/array.rs
rust/flatbuffers/src/builder.rs