implement Request constructors, remove build methods

This commit is contained in:
yggverse 2025-01-13 23:14:54 +02:00
parent e2097138a9
commit ce5d3ac4d2
5 changed files with 29 additions and 29 deletions

View file

@ -53,10 +53,8 @@ use ggemini::client::{
fn main() -> ExitCode {
Client::new().request_async(
Request::Gemini(
Gemini::build(
Uri::parse("gemini://geminiprotocol.net/", UriFlags::NONE).unwrap()
)
Request::gemini(
Uri::parse(REQUEST, UriFlags::NONE).unwrap(),
),
Priority::DEFAULT,
Cancellable::new(),