mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
apply new fmt version
This commit is contained in:
parent
fc8356f7ac
commit
e6661c1d00
5 changed files with 8 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ pub mod error;
|
|||
pub use connection::{Connection, Request, Response};
|
||||
pub use error::Error;
|
||||
|
||||
use gio::{prelude::SocketClientExt, Cancellable, SocketClient, SocketProtocol, TlsCertificate};
|
||||
use gio::{Cancellable, SocketClient, SocketProtocol, TlsCertificate, prelude::SocketClientExt};
|
||||
use glib::Priority;
|
||||
|
||||
// Defaults
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ pub use response::Response;
|
|||
// Local dependencies
|
||||
|
||||
use gio::{
|
||||
prelude::{IOStreamExt, OutputStreamExtManual, TlsConnectionExt},
|
||||
Cancellable, IOStream, NetworkAddress, SocketConnection, TlsCertificate, TlsClientConnection,
|
||||
prelude::{IOStreamExt, OutputStreamExtManual, TlsConnectionExt},
|
||||
};
|
||||
use glib::{
|
||||
object::{Cast, ObjectExt},
|
||||
Bytes, Priority,
|
||||
object::{Cast, ObjectExt},
|
||||
};
|
||||
|
||||
pub struct Connection {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ pub use success::Success;
|
|||
|
||||
use super::Connection;
|
||||
use gio::{Cancellable, IOStream};
|
||||
use glib::{object::IsA, Priority};
|
||||
use glib::{Priority, object::IsA};
|
||||
|
||||
const HEADER_LEN: usize = 1024;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ pub mod error;
|
|||
pub use error::Error;
|
||||
|
||||
use gio::{
|
||||
prelude::{IOStreamExt, InputStreamExt, OutputStreamExtManual},
|
||||
Cancellable, FileOutputStream, IOStream,
|
||||
prelude::{IOStreamExt, InputStreamExt, OutputStreamExtManual},
|
||||
};
|
||||
use glib::{object::IsA, Bytes, Priority};
|
||||
use glib::{Bytes, Priority, object::IsA};
|
||||
|
||||
/// Asynchronously move all bytes from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)
|
||||
/// to [FileOutputStream](https://docs.gtk.org/gio/class.FileOutputStream.html)
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ pub mod error;
|
|||
pub use error::Error;
|
||||
|
||||
use gio::{
|
||||
prelude::{IOStreamExt, InputStreamExt, MemoryInputStreamExt},
|
||||
Cancellable, IOStream, MemoryInputStream,
|
||||
prelude::{IOStreamExt, InputStreamExt, MemoryInputStreamExt},
|
||||
};
|
||||
use glib::{object::IsA, Priority};
|
||||
use glib::{Priority, object::IsA};
|
||||
|
||||
/// Asynchronously create new [MemoryInputStream](https://docs.gtk.org/gio/class.MemoryInputStream.html)
|
||||
/// from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue