ignore dead code warnings
This commit is contained in:
@ -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);
|
||||
|
@ -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),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user