mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update enum name
This commit is contained in:
parent
7518101b55
commit
d57d9fc7df
2 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ impl Redirect {
|
|||
.parse_relative(self.target(), UriFlags::NONE)
|
||||
{
|
||||
Ok(absolute) => Ok(absolute),
|
||||
Err(e) => Err(Error::Glib(e)),
|
||||
Err(e) => Err(Error::Uri(e)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use std::{
|
|||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Glib(glib::Error),
|
||||
Uri(glib::Error),
|
||||
Protocol,
|
||||
Target,
|
||||
Utf8Error(Utf8Error),
|
||||
|
|
@ -14,8 +14,8 @@ pub enum Error {
|
|||
impl Display for Error {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
match self {
|
||||
Self::Glib(e) => {
|
||||
write!(f, "Glib error: {e}")
|
||||
Self::Uri(e) => {
|
||||
write!(f, "URI error: {e}")
|
||||
}
|
||||
Self::Utf8Error(e) => {
|
||||
write!(f, "UTF-8 error: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue