apply some clippy corrections

This commit is contained in:
yggverse 2024-11-15 22:01:47 +02:00
parent d6dc4d6870
commit 1d4dc50380
4 changed files with 18 additions and 21 deletions

View file

@ -22,7 +22,7 @@ impl Data {
/// from entire response or just header slice
///
/// * result could be `None` for some [status codes](https://geminiprotocol.net/docs/protocol-specification.gmi#status-codes)
/// that does not expect any data in header
/// that does not expect any data in header
pub fn from_utf8(buffer: &[u8]) -> Result<Option<Self>, Error> {
// Define max buffer length for this method
const MAX_LEN: usize = 0x400; // 1024