rename protocol enum item

This commit is contained in:
yggverse 2025-01-18 09:32:50 +02:00
parent e5a8e7dd12
commit d87057a544
2 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ impl Driver {
}, },
), ),
Protocol::Titan { .. } => todo!(), Protocol::Titan { .. } => todo!(),
Protocol::Unsupported => todo!(), Protocol::Undefined => todo!(),
}, },
Feature::Source(ref protocol) => match protocol { Feature::Source(ref protocol) => match protocol {
Protocol::Gemini { Protocol::Gemini {

View File

@ -16,7 +16,7 @@ pub enum Protocol {
cancellable: Cancellable, cancellable: Cancellable,
priority: Priority, priority: Priority,
}, },
Unsupported, Undefined,
} }
impl Protocol { impl Protocol {
@ -36,7 +36,7 @@ impl Protocol {
cancellable, cancellable,
priority, priority,
}, },
_ => Self::Unsupported, _ => Self::Undefined,
}, },
// Search request if the request could not be parsed as the valid [URI](https://docs.gtk.org/glib/struct.Uri.html) // Search request if the request could not be parsed as the valid [URI](https://docs.gtk.org/glib/struct.Uri.html)
// * @TODO implement DNS lookup before apply this option // * @TODO implement DNS lookup before apply this option
@ -71,7 +71,7 @@ impl Protocol {
cancellable: _, cancellable: _,
priority: _, priority: _,
} => Some(&uri), } => Some(&uri),
Self::Unsupported => None, Self::Undefined => None,
} }
} }
} }