fn last_activity(&self) -> Option<DateTime<Utc>> {
        let mut last_activity = self.krate.as_ref().map(|k| k.updated_at);

        if let Some(last_commit) = self.repo.as_ref().map(|r| r.last_commit) {
            if Some(last_commit) > last_activity {
                last_activity = Some(last_commit);
            }
        }

        last_activity
    }
//   In calculating last_activity, we only scrape last_commit for github-based crates
//   so this is unfair to projects that host source elsewhere.
//   This is slightly mitigated by falling back to the last crate publish date
In calculating last_activity, we only scrape last_commit for github-based crates
so this is unfair to projects that host source elsewhere.
This is slightly mitigated by falling back to the last crate publish date
In calculating last_activity we only scrape last_commit for github - based crates so this is unfair to projects that host source elsewhere . This is slightly mitigated by falling back to the last crate publish date
fn last_activity(&self) -> Option<DateTime<Utc>> {
        let mut last_activity = self.krate.as_ref().map(|k| k.updated_at);
        if let Some(last_commit) = self.repo.as_ref().map(|r| r.last_commit) {
            if Some(last_commit) > last_activity {
                last_activity = Some(last_commit);
            }
        }
        last_activity
    }
fn last_activity ( & self ) -> Option < DateTime < Utc > > { let mut last_activity = self . krate . as_ref ( ) . map ( | k | k . updated_at ) ; if let Some ( last_commit ) = self . repo . as_ref ( ) . map ( | r | r . last_commit ) { if Some ( last_commit ) > last_activity { last_activity = Some ( last_commit ) ; } } last_activity }
In calculating last_activity, we only scrape last_commit for github-based crates
so this is unfair to projects that host source elsewhere.
In calculating last_activity we only scrape last_commit for github - based crates so this is unfair to projects that host source elsewhere .
&self