add more undefined behaviour
This commit is contained in:
parent
dee7c2e396
commit
b3b0160497
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ impl Client {
|
||||||
pub async fn ping(&self) -> Result<(), Error> {
|
pub async fn ping(&self) -> Result<(), Error> {
|
||||||
let mut url = self.base_url.clone();
|
let mut url = self.base_url.clone();
|
||||||
url.path_segments_mut()
|
url.path_segments_mut()
|
||||||
.expect("can't modify url path segments")
|
// literally can't fail
|
||||||
|
.unwrap_or_else(|_| unsafe { std::hint::unreachable_unchecked() })
|
||||||
.extend(&["rest", "ping"]);
|
.extend(&["rest", "ping"]);
|
||||||
|
|
||||||
self.client
|
self.client
|
||||||
|
|
Loading…
Reference in a new issue