update argument types

This commit is contained in:
yggverse 2024-11-27 16:45:39 +02:00
parent cbaa4c0e81
commit cc0625d920
3 changed files with 48 additions and 35 deletions

View file

@ -6,9 +6,9 @@ pub enum Error {
Connectable(String),
Connection(crate::client::connection::Error),
NetworkAddress(crate::gio::network_address::Error),
OutputStream(glib::Error),
Request(glib::Error),
Response(crate::client::response::Error),
Write(glib::Error),
}
impl Display for Error {
@ -26,15 +26,15 @@ impl Display for Error {
Self::NetworkAddress(reason) => {
write!(f, "Network address error: {reason}")
}
Self::OutputStream(reason) => {
write!(f, "Output stream error: {reason}")
}
Self::Request(reason) => {
write!(f, "Request error: {reason}")
}
Self::Response(reason) => {
write!(f, "Response error: {reason}")
}
Self::Write(reason) => {
write!(f, "I/O Write error: {reason}")
}
}
}
}