apply new fmt version

This commit is contained in:
yggverse 2025-03-16 21:58:00 +02:00
parent fc8356f7ac
commit e6661c1d00
5 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ pub mod error;
pub use connection::{Connection, Request, Response}; pub use connection::{Connection, Request, Response};
pub use error::Error; pub use error::Error;
use gio::{prelude::SocketClientExt, Cancellable, SocketClient, SocketProtocol, TlsCertificate}; use gio::{Cancellable, SocketClient, SocketProtocol, TlsCertificate, prelude::SocketClientExt};
use glib::Priority; use glib::Priority;
// Defaults // Defaults

View file

@ -9,12 +9,12 @@ pub use response::Response;
// Local dependencies // Local dependencies
use gio::{ use gio::{
prelude::{IOStreamExt, OutputStreamExtManual, TlsConnectionExt},
Cancellable, IOStream, NetworkAddress, SocketConnection, TlsCertificate, TlsClientConnection, Cancellable, IOStream, NetworkAddress, SocketConnection, TlsCertificate, TlsClientConnection,
prelude::{IOStreamExt, OutputStreamExtManual, TlsConnectionExt},
}; };
use glib::{ use glib::{
object::{Cast, ObjectExt},
Bytes, Priority, Bytes, Priority,
object::{Cast, ObjectExt},
}; };
pub struct Connection { pub struct Connection {

View file

@ -14,7 +14,7 @@ pub use success::Success;
use super::Connection; use super::Connection;
use gio::{Cancellable, IOStream}; use gio::{Cancellable, IOStream};
use glib::{object::IsA, Priority}; use glib::{Priority, object::IsA};
const HEADER_LEN: usize = 1024; const HEADER_LEN: usize = 1024;

View file

@ -2,10 +2,10 @@ pub mod error;
pub use error::Error; pub use error::Error;
use gio::{ use gio::{
prelude::{IOStreamExt, InputStreamExt, OutputStreamExtManual},
Cancellable, FileOutputStream, IOStream, 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) /// Asynchronously move all bytes from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)
/// to [FileOutputStream](https://docs.gtk.org/gio/class.FileOutputStream.html) /// to [FileOutputStream](https://docs.gtk.org/gio/class.FileOutputStream.html)

View file

@ -2,10 +2,10 @@ pub mod error;
pub use error::Error; pub use error::Error;
use gio::{ use gio::{
prelude::{IOStreamExt, InputStreamExt, MemoryInputStreamExt},
Cancellable, IOStream, MemoryInputStream, 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) /// Asynchronously create new [MemoryInputStream](https://docs.gtk.org/gio/class.MemoryInputStream.html)
/// from [IOStream](https://docs.gtk.org/gio/class.IOStream.html) /// from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)