Periodic update #112
					 2 changed files with 18 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -140,9 +140,17 @@ | ||||||
|         sops-nix.packages.${system}.sops-import-keys-hook |         sops-nix.packages.${system}.sops-import-keys-hook | ||||||
|       ]; |       ]; | ||||||
| 
 | 
 | ||||||
|       packages = [ |       packages = with pkgs; [ | ||||||
|         sops-nix.packages.${system}.sops-init-gpg-key |         sops-nix.packages.${system}.sops-init-gpg-key | ||||||
|         deploy-rs.packages.${system}.default |         deploy-rs.packages.${system}.default | ||||||
|  | 
 | ||||||
|  |         cargo | ||||||
|  |         clippy | ||||||
|  |         rustc | ||||||
|  |         rustfmt | ||||||
|  |         rust-analyzer | ||||||
|  |         pkg-config | ||||||
|  |         openssl | ||||||
|       ]; |       ]; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|  | @ -3,8 +3,13 @@ mod trash; | ||||||
| 
 | 
 | ||||||
| #[tokio::main] | #[tokio::main] | ||||||
| async fn main() { | async fn main() { | ||||||
|     let dates = trash::get_pickup_dates().await.unwrap(); |     match trash::get_pickup_dates().await { | ||||||
|  |         Ok(dates) => { | ||||||
|             let calendar = calendar::calendar_from_pickup_dates(dates); |             let calendar = calendar::calendar_from_pickup_dates(dates); | ||||||
| 
 |  | ||||||
|             calendar.print().unwrap(); |             calendar.print().unwrap(); | ||||||
|         } |         } | ||||||
|  |         Err(error) => { | ||||||
|  |             eprintln!("{}", error); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue