Skip to content

Commit 5d30fc2

Browse files
committed
fix: delete unnecessary imports
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
1 parent 87742e5 commit 5d30fc2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

awkernel_async_lib/src/dag.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ mod performance;
5555

5656
use crate::{
5757
dag::{
58-
self,
5958
graph::{
6059
algo::{connected_components, is_cyclic_directed},
6160
direction::Direction,
@@ -66,8 +65,7 @@ use crate::{
6665
scheduler::SchedulerType,
6766
task::{
6867
perf::{
69-
get_period_count, get_pub_count, get_sink_count, get_sub_count, increment_period_count,
70-
increment_pub_count, increment_sink_count, increment_sub_count, publish_timestamp_at, subscribe_timestamp_at,
68+
get_period_count, increment_period_count, increment_pub_count, increment_sink_count, increment_sub_count, publish_timestamp_at, subscribe_timestamp_at,
7169
update_fin_recv_outer_timestamp_at, update_pre_send_outer_timestamp_at,
7270
},
7371
DagInfo,

awkernel_async_lib/src/time_interval.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ pub fn interval_at(start: Time, period: Duration, _dag_id: u32) -> Interval {
106106
#[cfg(feature = "need-get-period")]
107107
{
108108
let index = get_period_count(_dag_id.clone() as usize) as usize;
109-
update_pre_send_outer_timestamp_at(index, start.uptime().as_nanos() as u64, _dag_id.clone());
109+
update_pre_send_outer_timestamp_at(
110+
index,
111+
start.uptime().as_nanos() as u64,
112+
_dag_id.clone(),
113+
);
110114
}
111115
Interval {
112116
delay: None,

0 commit comments

Comments
 (0)