ignore dead code warnings

This commit is contained in:
2022-10-02 16:54:02 +01:00
parent 9e86212404
commit d7d4f0e6b3
8 changed files with 11 additions and 0 deletions

View File

@ -155,6 +155,7 @@ impl Database {
/// Add a post to the database by inserting an instance of the Post struct
/// into the post tree.
#[allow(dead_code)]
pub fn add_post(&self, public_key: &str, post: Post) -> Result<Option<IVec>> {
let post_key = format!("{}_{}", public_key, post.key);
debug!("Serializing post data for {} to bincode", &post_key);

View File

@ -43,6 +43,7 @@ async fn fetch_name_and_update_db(db: &Database, peer_id: String) {
pub enum Task {
Cancel,
FetchAllPosts(String),
#[allow(dead_code)]
FetchLatestName(String),
}