Skip to content

Commit

Permalink
Clippy 4
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhickman committed Apr 17, 2021
1 parent 55529a1 commit 49f399a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/body/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ use crate::{
grpc,
};

type UpdateQueue = SegQueue<Box<dyn FnOnce(&mut TabController, &mut TabState) + Send>>;

pub struct TabController {
updates: Arc<SegQueue<Box<dyn FnOnce(&mut TabController, &mut TabState) + Send>>>,
updates: Arc<UpdateQueue>,
client: Option<grpc::Client>,
call: Option<grpc::Call>,
}

struct UpdateWriter {
target: WidgetId,
event_sink: ExtEventSink,
updates: Weak<SegQueue<Box<dyn FnOnce(&mut TabController, &mut TabState) + Send>>>,
updates: Weak<UpdateQueue>,
}

impl TabController {
Expand Down
6 changes: 6 additions & 0 deletions src/app/body/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ impl State {
}
}

impl Default for State {
fn default() -> Self {
Self::new()
}
}

impl ExpanderData for ItemExpanderState {
fn expanded(&self, _: &Env) -> bool {
self.expanded
Expand Down

0 comments on commit 49f399a

Please sign in to comment.