meta: make clippy happy

This commit is contained in:
Jake McGinty 2021-09-15 21:18:04 +09:00
parent cacd80b283
commit ae89e06655

View file

@ -880,16 +880,12 @@ fn override_endpoint(
} else {
None
};
endpoint.map(|endpoint| EndpointContents::Set(endpoint))
endpoint.map(EndpointContents::Set)
};
if let Some(contents) = endpoint_contents {
log::info!("Updating endpoint.");
Api::new(&config.server).http_form(
"PUT",
"/user/endpoint",
contents,
)?;
Api::new(&config.server).http_form("PUT", "/user/endpoint", contents)?;
} else {
log::info!("exiting without overriding endpoint.");
}