Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Remove pr_status accessor method
Maximilian Roosf5b423665ab6
diff --git a/src/commands/list/model.rs b/src/commands/list/model.rsindex ceb39e9a8..57150fb1c 100644--- a/src/commands/list/model.rs+++ b/src/commands/list/model.rs@@ -314,10 +314,6 @@ impl ListItem {self.worktree_data().map(|data| &data.path)}- pub fn pr_status(&self) -> Option<Option<&PrStatus>> {- self.pr_status.as_ref().map(|opt| opt.as_ref())- }-/// Determine if the item contains no unique work and can likely be removed.////// Returns:diff --git a/src/commands/list/render.rs b/src/commands/list/render.rsindex 2bd31a50b..dd34e6eb3 100644--- a/src/commands/list/render.rs+++ b/src/commands/list/render.rs@@ -652,7 +652,7 @@ impl ColumnLayout {// - None = not loaded yet (show spinner)// - Some(None) = loaded, no CI (show nothing)// - Some(Some(status)) = loaded with CI (show status)- match ctx.item.pr_status() {+ match &ctx.item.pr_status {None => {// Not loaded yet - show spinnerlet mut cell = StyledLine::new();