style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -75,7 +75,8 @@ impl Subject {
|
||||
label: row.get(2)?,
|
||||
anatomy_path: row.get(3)?,
|
||||
demographics,
|
||||
created_at: DateTime::parse_from_rfc3339(&row.get::<_, String>(5)?).map_or_else(|_| Utc::now(), |dt| dt.with_timezone(&Utc)),
|
||||
created_at: DateTime::parse_from_rfc3339(&row.get::<_, String>(5)?)
|
||||
.map_or_else(|_| Utc::now(), |dt| dt.with_timezone(&Utc)),
|
||||
})
|
||||
})
|
||||
.map_err(|_| DatabaseError::SubjectNotFound { id: id.to_string() })?;
|
||||
@@ -125,7 +126,8 @@ impl Subject {
|
||||
label: row.get(2)?,
|
||||
anatomy_path: row.get(3)?,
|
||||
demographics,
|
||||
created_at: DateTime::parse_from_rfc3339(&row.get::<_, String>(5)?).map_or_else(|_| Utc::now(), |dt| dt.with_timezone(&Utc)),
|
||||
created_at: DateTime::parse_from_rfc3339(&row.get::<_, String>(5)?)
|
||||
.map_or_else(|_| Utc::now(), |dt| dt.with_timezone(&Utc)),
|
||||
})
|
||||
})?
|
||||
.collect::<std::result::Result<Vec<_>, _>>()?;
|
||||
|
||||
Reference in New Issue
Block a user