Skip to content

Commit 1839e8f

Browse files
committed
fix: delete unnecessary functions 3
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
1 parent c45c465 commit 1839e8f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

awkernel_async_lib/src/task.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ impl TaskInfo {
221221
pub fn panicked(&self) -> bool {
222222
self.panicked
223223
}
224+
225+
#[inline(always)]
226+
pub fn get_dag_info(&self) -> Option<(u32, u32)> {
227+
match (self.dag_id, self.node_index) {
228+
(Some(dag_id), Some(node_index)) => Some((dag_id, node_index)),
229+
_ => None,
230+
}
231+
}
224232
}
225233

226234
/// State of task.

0 commit comments

Comments
 (0)