update enum name

This commit is contained in:
yggverse 2025-02-03 02:55:42 +02:00
parent 7518101b55
commit d57d9fc7df
2 changed files with 4 additions and 4 deletions

View file

@ -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)),
}
}

View file

@ -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}")