diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 20:57:35 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 20:57:35 +0100 |
commit | 860177170ce583be7c7d86d8d81fdc6a7c402dc4 (patch) | |
tree | b6c3924f84deed750a2329309f983a9994b853bc | |
parent | 74701b5f3750bd249d168ba4003dcb83449e5404 (diff) | |
parent | e546c1904282b160255c7ec1522c621a4d9ba8e8 (diff) |
Merge branch 'cleanup'
-rw-r--r-- | gui/src/app/mod.rs | 1 | ||||
-rw-r--r-- | gui/src/timeline.rs | 2 | ||||
-rw-r--r-- | lib/src/reactor/gossip/strategy.rs | 2 |
3 files changed, 1 insertions, 4 deletions
diff --git a/gui/src/app/mod.rs b/gui/src/app/mod.rs index a6849fb..8fefdbc 100644 --- a/gui/src/app/mod.rs +++ b/gui/src/app/mod.rs @@ -13,7 +13,6 @@ use distrox_lib::profile::Profile; use crate::timeline::Timeline; use crate::timeline::PostLoadingRecipe; -use crate::post::Post; mod message; pub use message::Message; diff --git a/gui/src/timeline.rs b/gui/src/timeline.rs index 8a13d5d..0dace40 100644 --- a/gui/src/timeline.rs +++ b/gui/src/timeline.rs @@ -1,6 +1,4 @@ use anyhow::Result; -use chrono::DateTime; -use chrono::Utc; use futures::StreamExt; use iced_native::widget::scrollable::State as ScrollableState; diff --git a/lib/src/reactor/gossip/strategy.rs b/lib/src/reactor/gossip/strategy.rs index b54dddc..6fe9d1a 100644 --- a/lib/src/reactor/gossip/strategy.rs +++ b/lib/src/reactor/gossip/strategy.rs @@ -15,7 +15,7 @@ pub struct LogStrategy; #[async_trait::async_trait] impl GossipHandlingStrategy for LogStrategy { - async fn handle_gossip_message(profile: Arc<RwLock<Profile>>, source: ipfs::PeerId, msg: GossipMessage) -> Result<()> { + async fn handle_gossip_message(_profile: Arc<RwLock<Profile>>, source: ipfs::PeerId, msg: GossipMessage) -> Result<()> { use std::convert::TryFrom; match msg { GossipMessage::CurrentProfileState { peer_id, cid } => { |