cargo fmt

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-09-09 22:26:07 -04:00
parent f621b318c5
commit 25c6d8b2ad
3 changed files with 3 additions and 8 deletions

View File

@ -42,10 +42,7 @@ pub mod unstable {
impl Request {
/// Creates a new `Request` with the given user ID and timezone.
pub fn new(user_id: OwnedUserId, tz: Option<String>) -> Self {
Self {
user_id,
tz,
}
Self { user_id, tz }
}
}

View File

@ -10,8 +10,6 @@ use ruma_macros::Event;
use serde::{ser::SerializeStruct, Deserialize, Deserializer, Serialize};
use serde_json::value::RawValue as RawJsonValue;
use crate::{AnyGlobalAccountDataEvent, AnyRoomAccountDataEvent};
use super::{
AnyInitialStateEvent, EmptyStateKey, EphemeralRoomEventContent, EventContent,
EventContentFromType, GlobalAccountDataEventContent, MessageLikeEventContent,
@ -20,6 +18,7 @@ use super::{
RedactionDeHelper, RoomAccountDataEventContent, StateEventType, StaticStateEventContent,
ToDeviceEventContent,
};
use crate::{AnyGlobalAccountDataEvent, AnyRoomAccountDataEvent};
/// Enum allowing to use the same structures for global and room account data
#[derive(Debug)]

View File

@ -67,8 +67,7 @@ impl ReleaseTask {
pub(crate) fn run(&mut self) -> Result<()> {
let title = &self.title();
let prerelease = !self.version.pre.is_empty();
let publish_only =
["ruma-macros"].contains(&self.package.name.as_str());
let publish_only = ["ruma-macros"].contains(&self.package.name.as_str());
println!(
"Starting {} for {title}…",