mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
add comment
This commit is contained in:
parent
99d7baff58
commit
c1bae6e6b5
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ impl Meta {
|
|||
pub fn from_utf8(buffer: &[u8]) -> Result<Self, (Error, Option<&str>)> {
|
||||
let len = buffer.len();
|
||||
|
||||
// Can parse from entire response or just meta buffer given
|
||||
match buffer.get(..if len > MAX_LEN { MAX_LEN } else { len }) {
|
||||
Some(slice) => {
|
||||
// Parse data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue