mirror of
https://github.com/YGGverse/titanite.git
synced 2026-03-31 17:15:33 +00:00
update namespaces
This commit is contained in:
parent
21ac900576
commit
385f9aefc4
2 changed files with 3 additions and 4 deletions
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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()?)?)?,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue