mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
useless_conversion
This commit is contained in:
parent
e7d0deac53
commit
b73ee2f50d
7 changed files with 10 additions and 14 deletions
|
@ -1744,7 +1744,7 @@ impl Config {
|
|||
}
|
||||
|
||||
pub fn main_loop_num_threads(&self) -> usize {
|
||||
self.data.numThreads.unwrap_or(num_cpus::get_physical().try_into().unwrap_or(1))
|
||||
self.data.numThreads.unwrap_or(num_cpus::get_physical())
|
||||
}
|
||||
|
||||
pub fn typing_autoclose_angle(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue