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)
|
.parse_relative(self.target(), UriFlags::NONE)
|
||||||
{
|
{
|
||||||
Ok(absolute) => Ok(absolute),
|
Ok(absolute) => Ok(absolute),
|
||||||
Err(e) => Err(Error::Glib(e)),
|
Err(e) => Err(Error::Uri(e)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ use std::{
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
Glib(glib::Error),
|
Uri(glib::Error),
|
||||||
Protocol,
|
Protocol,
|
||||||
Target,
|
Target,
|
||||||
Utf8Error(Utf8Error),
|
Utf8Error(Utf8Error),
|
||||||
|
|
@ -14,8 +14,8 @@ pub enum Error {
|
||||||
impl Display for Error {
|
impl Display for Error {
|
||||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||||
match self {
|
match self {
|
||||||
Self::Glib(e) => {
|
Self::Uri(e) => {
|
||||||
write!(f, "Glib error: {e}")
|
write!(f, "URI error: {e}")
|
||||||
}
|
}
|
||||||
Self::Utf8Error(e) => {
|
Self::Utf8Error(e) => {
|
||||||
write!(f, "UTF-8 error: {e}")
|
write!(f, "UTF-8 error: {e}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue