mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
rename protocol enum item
This commit is contained in:
parent
e5a8e7dd12
commit
d87057a544
2 changed files with 4 additions and 4 deletions
|
|
@ -127,7 +127,7 @@ impl Driver {
|
|||
},
|
||||
),
|
||||
Protocol::Titan { .. } => todo!(),
|
||||
Protocol::Unsupported => todo!(),
|
||||
Protocol::Undefined => todo!(),
|
||||
},
|
||||
Feature::Source(ref protocol) => match protocol {
|
||||
Protocol::Gemini {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ pub enum Protocol {
|
|||
cancellable: Cancellable,
|
||||
priority: Priority,
|
||||
},
|
||||
Unsupported,
|
||||
Undefined,
|
||||
}
|
||||
|
||||
impl Protocol {
|
||||
|
|
@ -36,7 +36,7 @@ impl Protocol {
|
|||
cancellable,
|
||||
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)
|
||||
// * @TODO implement DNS lookup before apply this option
|
||||
|
|
@ -71,7 +71,7 @@ impl Protocol {
|
|||
cancellable: _,
|
||||
priority: _,
|
||||
} => Some(&uri),
|
||||
Self::Unsupported => None,
|
||||
Self::Undefined => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue