Avatar for the astral-sh user
astral-sh
ruff
BlogDocsChangelog

Replace two more uses of unsafe with const `Option::unwrap`

#20584Merged
Comparing
brent/safe-const-unwrap
(
49313f5
) with
main
(
cfc64d1
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
13

Benchmarks

13 total
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
64.6 ms*
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
Skipped
64.2 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
73.7 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
96.3 ms*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
4.9 ms*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
825 ms*
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Skipped
859.5 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
64 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
121.1 ms*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
398.2 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
67.4 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
62.8 ms*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
227.8 ms*

Commits

Click on a commit to change the comparison range
Base
main
cfc64d1
0%
Replace two more uses of unsafe with const `Option::unwrap`
49313f5
5 months ago
by ntBre
© 2026 CodSpeed Technology
Home Terms Privacy Docs