diff --git a/flake.nix b/flake.nix index f9941ba..ae22b2e 100644 --- a/flake.nix +++ b/flake.nix @@ -140,9 +140,17 @@ sops-nix.packages.${system}.sops-import-keys-hook ]; - packages = [ + packages = with pkgs; [ sops-nix.packages.${system}.sops-init-gpg-key deploy-rs.packages.${system}.default + + cargo + clippy + rustc + rustfmt + rust-analyzer + pkg-config + openssl ]; }; }; diff --git a/pkgs/afvalcalendar/src/main.rs b/pkgs/afvalcalendar/src/main.rs index b6a5fb0..e8023f7 100644 --- a/pkgs/afvalcalendar/src/main.rs +++ b/pkgs/afvalcalendar/src/main.rs @@ -3,8 +3,13 @@ mod trash; #[tokio::main] async fn main() { - let dates = trash::get_pickup_dates().await.unwrap(); - let calendar = calendar::calendar_from_pickup_dates(dates); - - calendar.print().unwrap(); + match trash::get_pickup_dates().await { + Ok(dates) => { + let calendar = calendar::calendar_from_pickup_dates(dates); + calendar.print().unwrap(); + } + Err(error) => { + eprintln!("{}", error); + } + } }