« first day (2609 days earlier)      last day (865 days later) » 

12:39 AM
@Jason I use advent code as a way to have self imposed restrictions; not trying to have great code.
For example using as many nightly features as I can, or being very aggressive about error handling
 
 
9 hours later…
9:58 AM
@DenysSéguret duplicate
 
10:12 AM
yes, voted. It's not a perfect one because boiethios' question is more interesting but it will do
 
well again duplicate is about answer :p
lukas answer cover the general case
 
yes, the answer should be clear enough
 
BTW quite a funny question
how did you put a version A of your code, put a playground link with a different version B of your code, and put error that are neither produce by the code in your question or the code in the playground ? — Stargateur 8 mins ago
we have everything, context, mcve, error
just OP mixed the final result
just waiting OP clean the mess
 
 
3 hours later…
1:34 PM
error[E0610]: `{float}` is a primitive type and therefore doesn't have fields
  --> src\main.rs:69:1
   |
69 | #[tokio::main]
   | ^^^^^^^^^^^^^^
   |
   = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info)
 

« first day (2609 days earlier)      last day (865 days later) »