Skip to content

Commit

Permalink
attempts to fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
yashs662 committed May 8, 2024
1 parent 7cab6c3 commit e336aa1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ base64 = "0.22.0"
bunt = "0.2.8"
strum = "0.26.2"
strum_macros = "0.26.2"
portable-atomic = "1.6.0"
9 changes: 2 additions & 7 deletions src/inputs/events.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
use super::{key::Key, mouse::Mouse, InputEvent};
use log::error;
use std::{
sync::{
atomic::{AtomicBool, Ordering},
Arc,
},
time::Duration,
};
use portable_atomic::{AtomicBool, Ordering};
use std::{sync::Arc, time::Duration};

pub struct Events {
rx: tokio::sync::mpsc::Receiver<InputEvent>,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/text_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::{
inputs::key::Key,
util::{num_digits, replace_tabs, spaces},
};
use portable_atomic::{AtomicU64, Ordering};
use ratatui::{
buffer::Buffer,
layout::{Alignment, Rect},
Expand All @@ -14,7 +15,6 @@ use ratatui::{
use std::{
cmp,
collections::VecDeque,
sync::atomic::{AtomicU64, Ordering},
};

#[derive(Clone, Debug)]
Expand Down

0 comments on commit e336aa1

Please sign in to comment.