From dbd880c9634c586d1605baf3741510b8ccecf702 Mon Sep 17 00:00:00 2001 From: notplants Date: Fri, 24 Dec 2021 10:34:07 -0500 Subject: [PATCH] Response to code review --- src/lib.rs | 2 -- src/sbot.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2dbc4cb..6fd638d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,8 +24,6 @@ //! } //! ``` -extern crate kuska_ssb; - pub mod error; pub mod sbot; mod utils; diff --git a/src/sbot.rs b/src/sbot.rs index ddfc3f7..738fc7b 100644 --- a/src/sbot.rs +++ b/src/sbot.rs @@ -116,7 +116,7 @@ impl Sbot { /// /// # Arguments /// - /// * `text` - A &str which represents the text to be published in the post + /// * `text` - A reference to a string slice which represents the text to be published in the post pub async fn publish_post(&mut self, text: &str) -> Result { let msg = TypedMessage::Post{ text: text.to_string(), mentions: None}; self.publish(msg).await @@ -127,7 +127,7 @@ impl Sbot { /// /// # Arguments /// - /// * `description` - A &str which represents the text to be published as an about description. + /// * `description` - A reference to a string slice which represents the text to be published as an about description. pub async fn publish_description(&mut self, description: &str) -> Result { let msg = TypedMessage::About { about: self.id.to_string(),