Small documentation improvements
This commit is contained in:
parent
cf77dbb5e7
commit
cbd686bd60
|
@ -200,6 +200,8 @@ async fn forecast_geo(
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Starts the main maps refresh loop and sets up and launches Rocket.
|
/// Starts the main maps refresh loop and sets up and launches Rocket.
|
||||||
|
///
|
||||||
|
/// See [`maps::run`] for the maps refresh loop.
|
||||||
#[rocket::main]
|
#[rocket::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
color_eyre::install()?;
|
color_eyre::install()?;
|
||||||
|
|
|
@ -141,6 +141,9 @@ impl MapsRefresh for MapsHandle {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieves an image from the provided URL.
|
/// Retrieves an image from the provided URL.
|
||||||
|
///
|
||||||
|
/// This returns [`None`] if it fails in either performing the request, retrieving the bytes from
|
||||||
|
/// the image or loading and the decoding the data into [`DynamicImage`].
|
||||||
async fn retrieve_image(url: &str) -> Option<DynamicImage> {
|
async fn retrieve_image(url: &str) -> Option<DynamicImage> {
|
||||||
// TODO: Handle or log errors!
|
// TODO: Handle or log errors!
|
||||||
let response = reqwest::get(url).await.ok()?;
|
let response = reqwest::get(url).await.ok()?;
|
||||||
|
|
Loading…
Reference in a new issue