mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-27 11:34:14 +00:00
rename protocol enum item
This commit is contained in:
parent
e5a8e7dd12
commit
d87057a544
@ -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…
x
Reference in New Issue
Block a user