mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
implement to_network_address method
This commit is contained in:
parent
007921f73f
commit
fecbbff18f
4 changed files with 42 additions and 13 deletions
|
|
@ -4,8 +4,7 @@ use std::fmt::{Display, Formatter, Result};
|
|||
pub enum Error {
|
||||
Connect(glib::Error),
|
||||
Connection(crate::client::connection::Error),
|
||||
NetworkAddress(crate::gio::network_address::Error),
|
||||
Request(glib::Error),
|
||||
Request(crate::client::connection::request::Error),
|
||||
}
|
||||
|
||||
impl Display for Error {
|
||||
|
|
@ -17,9 +16,6 @@ impl Display for Error {
|
|||
Self::Connect(e) => {
|
||||
write!(f, "Connect error: {e}")
|
||||
}
|
||||
Self::NetworkAddress(e) => {
|
||||
write!(f, "Network address error: {e}")
|
||||
}
|
||||
Self::Request(e) => {
|
||||
write!(f, "Request error: {e}")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue