Response to code review

This commit is contained in:
notplants 2021-12-24 10:34:07 -05:00
parent c12ea2c8c1
commit dbd880c963
2 changed files with 2 additions and 4 deletions

View File

@ -24,8 +24,6 @@
//! }
//! ```
extern crate kuska_ssb;
pub mod error;
pub mod sbot;
mod utils;

View File

@ -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<String, GolgiError> {
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<String, GolgiError> {
let msg = TypedMessage::About {
about: self.id.to_string(),