diff options
author | Joey Sacchini <joey@sacchini.net> | 2020-12-03 17:44:40 -0500 |
---|---|---|
committer | Joey Sacchini <joey@sacchini.net> | 2020-12-03 17:44:40 -0500 |
commit | fb57b7dbc7ec4422e29c076a8b0fe777db660a69 (patch) | |
tree | 1a5ac3c05eabebe787fddc0834bbd1f2cc4d90ef | |
parent | e080f1ecdbc9737a0656f803b491acad01039752 (diff) | |
download | craftio-rs-fb57b7dbc7ec4422e29c076a8b0fe777db660a69.tar.gz craftio-rs-fb57b7dbc7ec4422e29c076a8b0fe777db660a69.tar.bz2 craftio-rs-fb57b7dbc7ec4422e29c076a8b0fe777db660a69.zip |
blank line was missing
-rw-r--r-- | src/util.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs index a19922f..e33fc10 100644 --- a/src/util.rs +++ b/src/util.rs @@ -15,6 +15,7 @@ pub(crate) fn get_sized_buf(buf: &mut Option<Vec<u8>>, offset: usize, size: usiz } } } + fn ensure_buf_has_size(buf: &mut Vec<u8>, total_size: usize) { let cur_len = buf.len(); if cur_len >= total_size { |