Small documentation improvements

This commit is contained in:
Paul van Tilburg 2022-02-13 11:22:22 +01:00
parent cf77dbb5e7
commit cbd686bd60
Signed by untrusted user: paul
GPG Key ID: C6DE073EDA9EEC4D
2 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,8 @@ async fn forecast_geo(
}
/// Starts the main maps refresh loop and sets up and launches Rocket.
///
/// See [`maps::run`] for the maps refresh loop.
#[rocket::main]
async fn main() -> Result<()> {
color_eyre::install()?;

View File

@ -141,6 +141,9 @@ impl MapsRefresh for MapsHandle {
}
/// 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> {
// TODO: Handle or log errors!
let response = reqwest::get(url).await.ok()?;