update namespaces

This commit is contained in:
yggverse 2025-02-22 06:09:53 +02:00
parent 21ac900576
commit 385f9aefc4
2 changed files with 3 additions and 4 deletions

View file

@ -4,9 +4,6 @@ pub mod titan;
pub use gemini::Gemini;
pub use titan::Titan;
use super::Header;
use anyhow::{bail, Result};
/// https://geminiprotocol.net/docs/protocol-specification.gmi#requests
pub enum Request<'a> {
Gemini(Gemini),
@ -31,3 +28,5 @@ impl<'a> Request<'a> {
}
}
}
use anyhow::{bail, Result};

View file

@ -8,7 +8,7 @@ pub struct Gemini {
impl Gemini {
pub fn from_bytes(buffer: &[u8]) -> Result<Self> {
use super::Header;
use crate::Header;
Ok(Self {
url: Url::parse(std::str::from_utf8(buffer.header_bytes()?)?)?,
})