mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 09:35:33 +00:00
remove rc wrap
This commit is contained in:
parent
98c6150f74
commit
0cc6d10017
2 changed files with 4 additions and 6 deletions
|
|
@ -15,7 +15,6 @@ use gio::{
|
|||
TlsClientConnection,
|
||||
};
|
||||
use glib::{object::Cast, Bytes, Priority, Uri};
|
||||
use std::rc::Rc;
|
||||
|
||||
pub const DEFAULT_TIMEOUT: u32 = 10;
|
||||
|
||||
|
|
@ -104,7 +103,7 @@ impl Client {
|
|||
Ok(connection) => {
|
||||
// Begin new request
|
||||
request_async(
|
||||
Rc::new(connection),
|
||||
connection,
|
||||
uri.to_string(),
|
||||
priority,
|
||||
cancellable,
|
||||
|
|
@ -125,7 +124,7 @@ impl Client {
|
|||
/// Middle-level method to make new request to `Connection`
|
||||
/// * callback with new `Response`on success or `Error` on failure
|
||||
pub fn request_async(
|
||||
connection: Rc<Connection>,
|
||||
connection: Connection,
|
||||
query: String,
|
||||
priority: Option<Priority>,
|
||||
cancellable: Option<Cancellable>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue