Skip to content

Commit 39f8d89

Browse files
committed
chore: remove duplicated is_idle function
1 parent b46252f commit 39f8d89

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/processor/monitor.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ impl ContextMonitor {
1313
pub fn new(shared: Arc<Mutex<Context>>) -> Self {
1414
Self { shared }
1515
}
16-
17-
pub async fn is_idle(&self) -> bool {
18-
let context = self.shared.lock().await;
19-
context.state == State::Idle
20-
}
2116
}
2217

2318
impl spinner::State for ContextMonitor {

src/prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use promkit_widgets::{
1717
grapheme::StyledGraphemes,
1818
render::{Renderer, SharedRenderer},
1919
},
20-
spinner::{self, Spinner},
20+
spinner::{self, Spinner, State},
2121
status::{self, Severity},
2222
};
2323
use tokio::{

0 commit comments

Comments
 (0)