fix: clippy warnings
This commit is contained in:
parent
5dca68037d
commit
e562af0dc3
2 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,8 @@ cargo clippy # Lint
|
|||
cargo fmt # Format
|
||||
```
|
||||
|
||||
After finishing tests, always check the package with `nix flake check`.
|
||||
|
||||
## Architecture
|
||||
|
||||
Streamd parses markdown files into hierarchical **Shards**, then **localizes** them by assigning temporal moments and dimensional placements based on `@Tag` markers.
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ pub fn extract_datetime_from_marker_list(
|
|||
};
|
||||
|
||||
let naive = NaiveDateTime::new(final_date, final_time);
|
||||
naive_to_utc(naive, tz).unwrap_or_else(|| inherited_datetime)
|
||||
naive_to_utc(naive, tz).unwrap_or(inherited_datetime)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue