Skip to content

Commit

Permalink
update enum name
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Feb 3, 2025
1 parent 7518101 commit d57d9fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/client/connection/response/redirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/client/connection/response/redirect/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{

#[derive(Debug)]
pub enum Error {
Glib(glib::Error),
Uri(glib::Error),
Protocol,
Target,
Utf8Error(Utf8Error),
Expand All @@ -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}")
Expand Down

0 comments on commit d57d9fc

Please sign in to comment.