Skip to content

Commit

Permalink
Clippy fixes (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter authored Apr 12, 2024
1 parent 3d29e1d commit ca5505c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fidget/src/mesh/mt/dc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct DcWorker<'a> {

impl<'a> DcWorker<'a> {
pub fn scheduler(octree: &Octree, threads: usize) -> Mesh {
let queues = QueuePool::new(threads as usize);
let queues = QueuePool::new(threads);

let map = octree
.verts
Expand All @@ -75,7 +75,7 @@ impl<'a> DcWorker<'a> {
.collect::<Vec<_>>();
workers[0].queue.push(Task::Cell(CellIndex::default()));

let pool = &ThreadPool::new(threads as usize);
let pool = &ThreadPool::new(threads);
let out: Vec<_> = std::thread::scope(|s| {
let mut handles = vec![];
for w in workers {
Expand Down

0 comments on commit ca5505c

Please sign in to comment.