Hi,
Until this day I used to think that one can always substitute one for another. The annotation is good:
use chrono::{DateTime, Utc};
...
let stamp: DateTime<Utc> = p.metadata().unwrap().created().unwrap().into();
an attempt at turbofishing
let stamp = p.metadata().unwrap().created().unwrap().into::<DateTime<Utc>>();
results in error:
919 | let stamp = p.metadata().unwrap().created().unwrap().into::<DateTime<Utc>>();
| ^^^^----------------- help: remove these generics
| |
| expected 0 generic arguments
It's either turbofish can't always make it, or I'm putting the wrong fish in the wrong place.