nushell/.github/workflows
Devyn Cairns 13160b3ec3
Replace subtraction of Instants and Durations with saturating subtractions (#12549)
# Description
Duration can not be negative, and an underflow causes a panic.

This should fix #12539 as from what I can tell that bug was caused in
`nu-explore:📟:events` from subtracting durations, but I figured
this might be more widespread, and saturating to zero generally makes
sense.

I also added the relevant clippy lint to try to prevent this from
happening in the future. I can't think of a reason we would ever want to
subtract durations without checking first.

cc @fdncred

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-04-17 07:25:16 -05:00
..
audit.yml Bump actions/checkout from 4.1.1 to 4.1.2 (#12192) 2024-03-13 09:23:05 +08:00
check-msrv.nu Update MSRV following rust-toolchain.toml (#12455) 2024-04-09 08:25:45 -04:00
ci.yml Replace subtraction of Instants and Durations with saturating subtractions (#12549) 2024-04-17 07:25:16 -05:00
nightly-build.yml Bump softprops/action-gh-release from 2.0.1 to 2.0.4 (#12191) 2024-03-13 09:23:24 +08:00
release-pkg.nu Upgrade actions/checkout and softprops/action-gh-release (#12135) 2024-03-09 11:00:33 +08:00
release.yml Tweak release workflow after 0.92.1 lessons (#12401) 2024-04-06 10:20:01 +08:00
typos.yml Bump crate-ci/typos from 1.20.7 to 1.20.9 (#12543) 2024-04-17 01:26:46 +00:00
winget-submission.yml Update winget submission workflow include only default msi files (#10487) 2023-09-24 07:52:10 -05:00