File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -46,28 +46,6 @@ impl ParseState {
4646 }
4747}
4848
49- impl TryFrom < Timeline > for ParseState {
50- type Error = anyhow:: Error ;
51-
52- fn try_from ( timeline : Timeline ) -> Result < Self > {
53- let mut state = ParseState :: default ( ) ;
54- for contribution in timeline. contributions {
55- let date = contribution. date ;
56- let date = state. parse_date ( & date) ?;
57- let count = contribution. count ;
58-
59- if let Some ( date) = date {
60- // Kinda ineffective to call these update functions in a loop
61- for _ in 0 ..count {
62- state. update_years ( date) ;
63- state. update_days ( date) ;
64- }
65- }
66- }
67- Ok ( state)
68- }
69- }
70-
7149/// Backfill missing days with zero commits
7250fn backfill ( year : i32 , days : & mut HashMap < NaiveDate , usize > ) {
7351 for d in NaiveDate :: from_ymd ( year, 1 , 1 ) . iter_days ( ) {
You can’t perform that action at this time.
0 commit comments