Response to code review
This commit is contained in:
parent
c12ea2c8c1
commit
dbd880c963
|
@ -24,8 +24,6 @@
|
|||
//! }
|
||||
//! ```
|
||||
|
||||
extern crate kuska_ssb;
|
||||
|
||||
pub mod error;
|
||||
pub mod sbot;
|
||||
mod utils;
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue