Skip to content

Commit

Permalink
Renaming to RunTask to avoid collision
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Oct 8, 2024
1 parent f12a4e0 commit 60d2f51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/turborepo-ui/src/wui/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tokio::sync::Mutex;
use crate::wui::subscriber::{TaskState, WebUIState};

#[derive(Debug, Clone, Serialize, SimpleObject)]
struct Task {
struct RunTask {
name: String,
state: TaskState,
}
Expand All @@ -18,13 +18,13 @@ struct CurrentRun<'a> {

#[Object]
impl<'a> CurrentRun<'a> {
async fn tasks(&self) -> Vec<Task> {
async fn tasks(&self) -> Vec<RunTask> {
self.state
.lock()
.await
.tasks()
.iter()
.map(|(task, state)| Task {
.map(|(task, state)| RunTask {
name: task.clone(),
state: state.clone(),
})
Expand Down

0 comments on commit 60d2f51

Please sign in to comment.