diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
| commit | 9f210e973834700d14c6c0283ed750ed5b038e8b (patch) | |
| tree | cd8c75755c59fdc47bf71ca6dc34e49ab0258ae6 /src/pane | |
| parent | 3a9888cd564dc45d23a7bdd0dba29a6ff1ef48a1 (diff) | |
chore: enable clippy linting
Diffstat (limited to 'src/pane')
| -rw-r--r-- | src/pane/state.rs | 4 | ||||
| -rw-r--r-- | src/pane/terminal.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pane/state.rs b/src/pane/state.rs index aac80920..590f2025 100644 --- a/src/pane/state.rs +++ b/src/pane/state.rs @@ -104,9 +104,7 @@ impl PaneState { source: &str, agent_label: &str, ) -> Option<EffectiveStateChange> { - let Some(current_agent_label) = self.effective_agent_label() else { - return None; - }; + let current_agent_label = self.effective_agent_label()?; if current_agent_label != agent_label { return None; } diff --git a/src/pane/terminal.rs b/src/pane/terminal.rs index 80f83915..ad040ba2 100644 --- a/src/pane/terminal.rs +++ b/src/pane/terminal.rs @@ -712,10 +712,12 @@ impl GhosttyPaneTerminal { } } +type VisibleHyperlinks = Vec<((u16, u16), String, String)>; + fn ghostty_visible_hyperlinks( core: &mut GhosttyPaneCore, area: Rect, -) -> Result<Vec<((u16, u16), String, String)>, crate::ghostty::Error> { +) -> Result<VisibleHyperlinks, crate::ghostty::Error> { let GhosttyPaneCore { terminal, render_state, |
