useless_conversion

This commit is contained in:
Johann Hemmann 2024-01-22 01:31:50 +01:00
parent e7d0deac53
commit b73ee2f50d
7 changed files with 10 additions and 14 deletions

View file

@ -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 {