mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update argument types
This commit is contained in:
parent
cbaa4c0e81
commit
cc0625d920
3 changed files with 48 additions and 35 deletions
|
|
@ -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}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue