use separated mod for system tools

This commit is contained in:
yggverse 2025-02-24 02:54:18 +02:00
parent 8622fb10b4
commit 1d60db70c9
22 changed files with 44 additions and 43 deletions

View file

@ -11,7 +11,7 @@ impl CgiError {
/// Build `Self` from UTF-8 header bytes
/// * expected buffer includes leading status code, message, CRLF
pub fn from_bytes(buffer: &[u8]) -> Result<Self> {
use crate::Header;
use crate::tool::Header;
let h = buffer.header_bytes()?;
if h.get(..2)
.is_none_or(|c| c[0] != CODE[0] || c[1] != CODE[1])