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 { impl Request {
/// Creates a new `Request` with the given user ID and timezone. /// Creates a new `Request` with the given user ID and timezone.
pub fn new(user_id: OwnedUserId, tz: Option<String>) -> Self { pub fn new(user_id: OwnedUserId, tz: Option<String>) -> Self {
Self { Self { user_id, tz }
user_id,
tz,
}
} }
} }

View File

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

View File

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