mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-06 00:14:13 +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::Titan { .. } => todo!(),
|
||||||
Protocol::Unsupported => todo!(),
|
Protocol::Undefined => todo!(),
|
||||||
},
|
},
|
||||||
Feature::Source(ref protocol) => match protocol {
|
Feature::Source(ref protocol) => match protocol {
|
||||||
Protocol::Gemini {
|
Protocol::Gemini {
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user