enable dead_code lint

This commit is contained in:
Charles Hall 2024-05-21 21:58:43 -07:00
parent 518d0c9cf3
commit d7e945f4c5
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
17 changed files with 15 additions and 137 deletions

View file

@ -1,6 +1,6 @@
use ruma::{CanonicalJsonObject, EventId};
use crate::{PduEvent, Result};
use crate::Result;
pub(crate) trait Data: Send + Sync {
/// Returns the pdu from the outlier tree.
@ -8,7 +8,7 @@ pub(crate) trait Data: Send + Sync {
&self,
event_id: &EventId,
) -> Result<Option<CanonicalJsonObject>>;
fn get_outlier_pdu(&self, event_id: &EventId) -> Result<Option<PduEvent>>;
/// Append the PDU as an outlier.
fn add_pdu_outlier(
&self,