shorten module descriptions (remove 'golgi')

This commit is contained in:
glyph 2022-02-07 16:09:51 +02:00
parent b7b10cda6f
commit 623d2d2260
4 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
//! Custom error type for `golgi`.
//! Custom error type.
use std::io::Error as IoError;
use std::str::Utf8Error;

View File

@ -1,4 +1,4 @@
//! Message types and conversion methods for `golgi`.
//! Message types and conversion methods.
use kuska_ssb::api::dto::content::TypedMessage;
use serde::{Deserialize, Serialize};
@ -77,7 +77,7 @@ impl SsbMessageValue {
/// using the "type" field as a tag to select which variant of the enum
/// to deserialize into.
///
/// See more info on this here https://serde.rs/enum-representations.html#internally-tagged
/// See the [Serde docs on internally-tagged enum representations](https://serde.rs/enum-representations.html#internally-tagged) for further details.
pub fn into_ssb_message_content(self) -> Result<SsbMessageContent, GolgiError> {
let m: SsbMessageContent = serde_json::from_value(self.content)?;
Ok(m)

View File

@ -1,4 +1,4 @@
//! This module contains the golgi API for interacting with a running go-sbot instance.
//! API for interacting with a running go-sbot instance.
mod about;
mod friends;
mod get_subset;

View File

@ -1,4 +1,4 @@
//! Utility methods for `golgi`.
//! Utility methods.
use std::fmt::Debug;
use async_std::{io::Read, net::TcpStream, stream::Stream};