fmt
This commit is contained in:
parent
7be8dead07
commit
da96802bf0
2 changed files with 5 additions and 4 deletions
|
@ -1018,7 +1018,9 @@ impl ProjectPanel {
|
||||||
for (entry, repo) in
|
for (entry, repo) in
|
||||||
snapshot.entries_with_repositories(visible_worktree_entries[entry_range].iter())
|
snapshot.entries_with_repositories(visible_worktree_entries[entry_range].iter())
|
||||||
{
|
{
|
||||||
let status = (git_status_setting && entry.path.parent().is_some() && !entry.is_ignored)
|
let status = (git_status_setting
|
||||||
|
&& entry.path.parent().is_some()
|
||||||
|
&& !entry.is_ignored)
|
||||||
.then(|| repo.and_then(|repo| repo.status_for_path(&snapshot, &entry.path)))
|
.then(|| repo.and_then(|repo| repo.status_for_path(&snapshot, &entry.path)))
|
||||||
.flatten();
|
.flatten();
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
use serde_derive::{Deserialize, Serialize};
|
|
||||||
use anyhow;
|
use anyhow;
|
||||||
use settings::Setting;
|
|
||||||
use schemars::JsonSchema;
|
use schemars::JsonSchema;
|
||||||
|
use serde_derive::{Deserialize, Serialize};
|
||||||
|
use settings::Setting;
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
pub struct ProjectPanelSettings {
|
pub struct ProjectPanelSettings {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue