Skip to content

Commit 2559f54

Browse files
committed
update another example
1 parent b3ca87b commit 2559f54

File tree

1 file changed

+1
-1
lines changed
  • frb_codegen/assets/integration_template/shared/REPLACE_ME_RUST_CRATE_DIR/src

1 file changed

+1
-1
lines changed

frb_codegen/assets/integration_template/shared/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl SseDecode for Vec<u8> {
125125
// Codec=Sse (Serialization based), see doc to use other codecs
126126
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
127127
let mut len_ = <i32>::sse_decode(deserializer);
128-
let mut ans_ = vec![];
128+
let mut ans_ = Vec::with_capacity(len_ as usize);
129129
for idx_ in 0..len_ {
130130
ans_.push(<u8>::sse_decode(deserializer));
131131
}

0 commit comments

Comments
 (0)