Skip to content

Commit 1767dee

Browse files
branchseerclaude
andcommitted
fix: add panics doc to read_to_end for clippy missing_panics_doc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 34e93c0 commit 1767dee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/pty_terminal/src/terminal.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ impl Terminal {
177177
/// Returns an error if:
178178
/// - Reading from the PTY fails
179179
/// - The exit status is not available (should not happen in normal operation)
180+
///
181+
/// # Panics
182+
///
183+
/// Panics if the writer lock is poisoned.
180184
pub fn read_to_end(&mut self) -> anyhow::Result<ExitStatus> {
181185
// `read_to_end` will move cursor to the end, so clear any buffered data for `read_until`
182186
self.read_until_buffer.clear();

0 commit comments

Comments
 (0)