Fix use-self

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-09 10:23:06 +00:00
parent c3c91e9d80
commit eae41fc411
18 changed files with 47 additions and 48 deletions

View file

@ -211,7 +211,7 @@ impl Arena {
fn new(root: OwnedRoomId, max_depth: usize) -> Self {
let zero_depth = max_depth == 0;
Arena {
Self {
nodes: vec![Node {
parent: None,
next_sibling: None,
@ -248,7 +248,7 @@ impl FromStr for PagnationToken {
let mut values = value.split('_');
let mut pag_tok = || {
Some(PagnationToken {
Some(Self {
skip: UInt::from_str(values.next()?).ok()?,
limit: UInt::from_str(values.next()?).ok()?,
max_depth: UInt::from_str(values.next()?).ok()?,
@ -316,7 +316,7 @@ impl From<CachedSpaceHierarchySummary> for SpaceHierarchyRoomsChunk {
..
} = value.summary;
SpaceHierarchyRoomsChunk {
Self {
canonical_alias,
name,
num_joined_members,