Response to code review
This commit is contained in:
@ -24,8 +24,6 @@
|
|||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
extern crate kuska_ssb;
|
|
||||||
|
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod sbot;
|
pub mod sbot;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
@ -116,7 +116,7 @@ impl Sbot {
|
|||||||
///
|
///
|
||||||
/// # Arguments
|
/// # 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> {
|
pub async fn publish_post(&mut self, text: &str) -> Result<String, GolgiError> {
|
||||||
let msg = TypedMessage::Post{ text: text.to_string(), mentions: None};
|
let msg = TypedMessage::Post{ text: text.to_string(), mentions: None};
|
||||||
self.publish(msg).await
|
self.publish(msg).await
|
||||||
@ -127,7 +127,7 @@ impl Sbot {
|
|||||||
///
|
///
|
||||||
/// # Arguments
|
/// # 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> {
|
pub async fn publish_description(&mut self, description: &str) -> Result<String, GolgiError> {
|
||||||
let msg = TypedMessage::About {
|
let msg = TypedMessage::About {
|
||||||
about: self.id.to_string(),
|
about: self.id.to_string(),
|
||||||
|
Reference in New Issue
Block a user