mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
minor rustfmt fix
This commit is contained in:
parent
2de25e0126
commit
42c01c5b10
3 changed files with 8 additions and 5 deletions
|
@ -491,24 +491,24 @@ impl<'a> LayoutContext<'a> {
|
||||||
if layout_parent != app_parent {
|
if layout_parent != app_parent {
|
||||||
panic!(
|
panic!(
|
||||||
"View {} was laid out with parent {} when it was constructed with parent {}",
|
"View {} was laid out with parent {} when it was constructed with parent {}",
|
||||||
print_error(view_id),
|
print_error(view_id),
|
||||||
print_error(*layout_parent),
|
print_error(*layout_parent),
|
||||||
print_error(*app_parent))
|
print_error(*app_parent))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(None, Some(ParentId::View(app_parent))) => panic!(
|
(None, Some(ParentId::View(app_parent))) => panic!(
|
||||||
"View {} was laid out without a parent when it was constructed with parent {}",
|
"View {} was laid out without a parent when it was constructed with parent {}",
|
||||||
print_error(view_id),
|
print_error(view_id),
|
||||||
print_error(*app_parent)
|
print_error(*app_parent)
|
||||||
),
|
),
|
||||||
(Some(layout_parent), Some(ParentId::Root)) => panic!(
|
(Some(layout_parent), Some(ParentId::Root)) => panic!(
|
||||||
"View {} was laid out with parent {} when it was constructed as a window root",
|
"View {} was laid out with parent {} when it was constructed as a window root",
|
||||||
print_error(view_id),
|
print_error(view_id),
|
||||||
print_error(*layout_parent),
|
print_error(*layout_parent),
|
||||||
),
|
),
|
||||||
(_, None) => panic!(
|
(_, None) => panic!(
|
||||||
"View {} did not have a registered parent in the app context",
|
"View {} did not have a registered parent in the app context",
|
||||||
print_error(view_id),
|
print_error(view_id),
|
||||||
),
|
),
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -757,7 +757,9 @@ impl ProjectPanel {
|
||||||
fn index_for_selection(&self, selection: Selection) -> Option<(usize, usize, usize)> {
|
fn index_for_selection(&self, selection: Selection) -> Option<(usize, usize, usize)> {
|
||||||
let mut entry_index = 0;
|
let mut entry_index = 0;
|
||||||
let mut visible_entries_index = 0;
|
let mut visible_entries_index = 0;
|
||||||
for (worktree_index, (worktree_id, worktree_entries)) in self.visible_entries.iter().enumerate() {
|
for (worktree_index, (worktree_id, worktree_entries)) in
|
||||||
|
self.visible_entries.iter().enumerate()
|
||||||
|
{
|
||||||
if *worktree_id == selection.worktree_id {
|
if *worktree_id == selection.worktree_id {
|
||||||
for entry in worktree_entries {
|
for entry in worktree_entries {
|
||||||
if entry.id == selection.entry_id {
|
if entry.id == selection.entry_id {
|
||||||
|
|
1
styles/package-lock.json
generated
1
styles/package-lock.json
generated
|
@ -5,6 +5,7 @@
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
|
"name": "styles",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in a new issue