diff --git a/src/main.rs b/src/main.rs index dcb116a..8d582cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()?; diff --git a/src/maps.rs b/src/maps.rs index 6365d8c..038dbe9 100644 --- a/src/maps.rs +++ b/src/maps.rs @@ -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 { // TODO: Handle or log errors! let response = reqwest::get(url).await.ok()?;