ruff/crates/red_knot_server
Nuri Jung 58807b2980
Server: Use min instead of max to limit the number of threads (#17421)
## Summary

Prevent overcommit by using max 4 threads as intended.

Unintuitively, `.max()` returns the maximum value of `self` and the
argument (not limiting to the argument). To limit the value to 4, one
needs to use `.min()`.

https://doc.rust-lang.org/std/cmp/trait.Ord.html#method.max
2025-04-18 01:32:12 +05:30
..
src Server: Use min instead of max to limit the number of threads (#17421) 2025-04-18 01:32:12 +05:30
Cargo.toml [red-knot] Remove global dead_code from red-knot-server (#17229) 2025-04-06 22:09:24 +01:00