mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
rename variable
This commit is contained in:
parent
b5be9dcc76
commit
d999e64e02
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ impl Status {
|
||||||
/// * includes `Self::from_string` parser, it means that given buffer should contain some **header**
|
/// * includes `Self::from_string` parser, it means that given buffer should contain some **header**
|
||||||
pub fn from_utf8(buffer: &[u8]) -> Result<Self, Error> {
|
pub fn from_utf8(buffer: &[u8]) -> Result<Self, Error> {
|
||||||
match buffer.get(0..2) {
|
match buffer.get(0..2) {
|
||||||
Some(value) => match std::str::from_utf8(value) {
|
Some(b) => match std::str::from_utf8(b) {
|
||||||
Ok(s) => Self::from_string(s),
|
Ok(s) => Self::from_string(s),
|
||||||
Err(e) => Err(Error::Decode(e)),
|
Err(e) => Err(Error::Decode(e)),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue