apply new rustfmt.toml changes, fix some clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -35,7 +35,8 @@ impl Builder {
|
||||
{
|
||||
Self {
|
||||
event_type: content.event_type().into(),
|
||||
content: to_raw_value(content).expect("Builder failed to serialize state event content to RawValue"),
|
||||
content: to_raw_value(content)
|
||||
.expect("Builder failed to serialize state event content to RawValue"),
|
||||
state_key: Some(state_key),
|
||||
..Self::default()
|
||||
}
|
||||
@@ -47,7 +48,8 @@ impl Builder {
|
||||
{
|
||||
Self {
|
||||
event_type: content.event_type().into(),
|
||||
content: to_raw_value(content).expect("Builder failed to serialize timeline event content to RawValue"),
|
||||
content: to_raw_value(content)
|
||||
.expect("Builder failed to serialize timeline event content to RawValue"),
|
||||
..Self::default()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user