Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cargo clippy for latest rust version #848

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ballista/cache/src/backend/policy/lru/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ where
Self {
max_num: capacity,
current_num: 0,
_key_marker: PhantomData::default(),
_value_marker: PhantomData::default(),
_key_marker: PhantomData,
_value_marker: PhantomData,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ballista/scheduler/src/cluster/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl ClusterState for InMemoryClusterState {
let mut guard = self.task_slots.lock().await;

for (executor_id, num_slots) in increments {
if let Some(mut data) = guard.get_mut(&executor_id) {
if let Some(data) = guard.get_mut(&executor_id) {
data.slots += num_slots;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ballista/scheduler/src/cluster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ pub(crate) async fn bind_task_round_robin(
}
// Since the slots is a vector with descending order, and the total available slots is larger than 0,
// we are sure the available slot number at idx_slot is larger than 1
let mut slot = &mut slots[idx_slot];
let slot = &mut slots[idx_slot];
let executor_id = slot.executor_id.clone();
let task_id = *task_id_gen;
*task_id_gen += 1;
Expand Down
2 changes: 1 addition & 1 deletion ballista/scheduler/src/state/execution_graph_dot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl<'a> ExecutionGraphDot<'a> {
writeln!(&mut dot, "}}")?;
Ok(dot)
} else {
Err(fmt::Error::default())
Err(fmt::Error)
}
}

Expand Down