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(),