mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
style: Reformat with nightly
This commit is contained in:
11 files changed
+56
-47
No files matched your search
@@ -65,8 +65,8 @@ use crate::{Result, err, error::Error, utils::sys};
|
||||
ignore = "config_paths catchall"
|
||||
)]
|
||||
pub struct Config {
|
||||
// Paths to config file(s). Not supposed to be set manually in the config file,
|
||||
// only updated dynamically from the --config option given at runtime.
|
||||
// Paths to config file(s). Not supposed to be set manually in the config
|
||||
// file, only updated dynamically from the --config option given at runtime.
|
||||
pub config_paths: Option<Vec<PathBuf>>,
|
||||
|
||||
/// The server_name is the pretty name of this server. It is used as a
|
||||
|
||||
@@ -590,8 +590,8 @@ where
|
||||
.find(|aev| is_type_and_key(*aev, &TimelineEventType::RoomPowerLevels, ""));
|
||||
|
||||
let content: PowerLevelsContentFields = match pl {
|
||||
// With no m.room.power_levels in scope the create event's defaults apply,
|
||||
// under which the room creator holds 100 and everyone else 0.
|
||||
// With no m.room.power_levels in scope the create event's defaults
|
||||
// apply, under which the room creator holds 100 and everyone else 0.
|
||||
| None => return Ok(if sender_is_creator { int!(100) } else { int!(0) }),
|
||||
| Some(ev) => from_json_str(ev.content().get())?,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user