Remove unnecessary crate:: prefixes.
This commit is contained in:
parent
ebc6579d81
commit
b003699048
@ -5,7 +5,7 @@ use std::collections::HashMap;
|
||||
use ruma_identifiers::UserId;
|
||||
use serde::{ser::SerializeStruct, Deserialize, Serialize, Serializer};
|
||||
|
||||
use crate::{Empty, Event, EventType};
|
||||
use crate::{Empty, Event, EventType, InvalidEvent};
|
||||
|
||||
/// A list of users to ignore.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
@ -23,7 +23,7 @@ pub struct IgnoredUserListEventContent {
|
||||
|
||||
impl IgnoredUserListEvent {
|
||||
/// Attempt to create `Self` from parsing a string of JSON data.
|
||||
pub fn from_str(json: &str) -> Result<Self, crate::InvalidEvent> {
|
||||
pub fn from_str(json: &str) -> Result<Self, InvalidEvent> {
|
||||
let raw = serde_json::from_str::<raw::IgnoredUserListEvent>(json)?;
|
||||
|
||||
Ok(Self {
|
||||
|
@ -35,7 +35,7 @@ pub enum StartEventContent {
|
||||
}
|
||||
|
||||
impl FromStr for StartEvent {
|
||||
type Err = crate::InvalidEvent;
|
||||
type Err = InvalidEvent;
|
||||
|
||||
/// Attempt to create `Self` from parsing a string of JSON data.
|
||||
fn from_str(json: &str) -> Result<Self, Self::Err> {
|
||||
|
@ -77,7 +77,7 @@ pub enum MessageEventContent {
|
||||
}
|
||||
|
||||
impl FromStr for MessageEvent {
|
||||
type Err = crate::InvalidEvent;
|
||||
type Err = InvalidEvent;
|
||||
|
||||
/// Attempt to create `Self` from parsing a string of JSON data.
|
||||
fn from_str(json: &str) -> Result<Self, Self::Err> {
|
||||
|
@ -49,7 +49,7 @@ pub struct NameEventContent {
|
||||
}
|
||||
|
||||
impl FromStr for NameEvent {
|
||||
type Err = crate::InvalidEvent;
|
||||
type Err = InvalidEvent;
|
||||
|
||||
/// Attempt to create `Self` from parsing a string of JSON data.
|
||||
fn from_str(json: &str) -> Result<Self, Self::Err> {
|
||||
|
@ -88,7 +88,7 @@ pub struct PowerLevelsEventContent {
|
||||
}
|
||||
|
||||
impl FromStr for PowerLevelsEvent {
|
||||
type Err = crate::InvalidEvent;
|
||||
type Err = InvalidEvent;
|
||||
|
||||
/// Attempt to create `Self` from parsing a string of JSON data.
|
||||
fn from_str(json: &str) -> Result<Self, Self::Err> {
|
||||
|
@ -70,7 +70,7 @@ pub struct ServerAclEventContent {
|
||||
}
|
||||
|
||||
impl FromStr for ServerAclEvent {
|
||||
type Err = crate::InvalidEvent;
|
||||
type Err = InvalidEvent;
|
||||
|
||||
/// Attempt to create `Self` from parsing a string of JSON data.
|
||||
fn from_str(json: &str) -> Result<Self, Self::Err> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user