improved documentation and refactored naming to be more self-explanatory
This commit is contained in:
1 parent
e4d60c8dfc
commit
adfbb6c380
91 files changed
+1663
-1553
No files matched your search
@@ -77,17 +77,18 @@ where
|
||||
self.routes.retain(|&lhs, _| lhs <= last_visited);
|
||||
}
|
||||
};
|
||||
let state = match state {
|
||||
Some(state) => {
|
||||
self.current_index = state.index;
|
||||
state
|
||||
}
|
||||
None => {
|
||||
let index = depth - 1;
|
||||
self.current_index = index;
|
||||
State { index }
|
||||
}
|
||||
};
|
||||
let state =
|
||||
match state {
|
||||
Some(state) => {
|
||||
self.current_index = state.index;
|
||||
state
|
||||
}
|
||||
None => {
|
||||
let index = depth - 1;
|
||||
self.current_index = index;
|
||||
State { index }
|
||||
}
|
||||
};
|
||||
self.routes.insert(state.index, route);
|
||||
state
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user