Export Error and Result at top level

This commit is contained in:
Joscha 2024-12-08 18:22:15 +01:00
parent eca41c7d25
commit 8fbf77a2d7
4 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@
use serde::{Deserialize, Serialize};
use serde_json::Value;
use crate::error::{self, Error};
use crate::Error;
use super::PacketType;
@ -229,7 +229,7 @@ impl ParsedPacket {
}
}
pub fn into_data(self) -> error::Result<Data> {
pub fn into_data(self) -> crate::Result<Data> {
self.content.map_err(Error::Euph)
}

View file

@ -13,8 +13,8 @@ use tokio_tungstenite::tungstenite::{
use crate::{
api::{Command, Data, ParsedPacket},
conn::{Conn, ConnConfig, Side},
error::{Error, Result},
replies::{self, PendingReply, Replies},
Error, Result,
};
use super::state::State;

View file

@ -17,7 +17,7 @@ use tokio_tungstenite::{
use crate::{
api::{Data, Packet, PacketType, ParsedPacket, Ping, PingEvent, PingReply, Time},
error::{Error, Result},
Error, Result,
};
/// Which side of the connection we're on.

View file

@ -2,8 +2,8 @@ pub mod api;
pub mod client;
pub mod conn;
mod emoji;
pub mod error;
mod error;
pub mod nick;
mod replies;
pub use crate::emoji::Emoji;
pub use crate::{emoji::*, error::*};