Skip to content

Remove dead code and 'Debug' trait bound on Input's 'interact_text*' methods#280

Merged
pksunkara merged 1 commit intoconsole-rs:masterfrom
tbergerd:dev
Sep 13, 2023
Merged

Remove dead code and 'Debug' trait bound on Input's 'interact_text*' methods#280
pksunkara merged 1 commit intoconsole-rs:masterfrom
tbergerd:dev

Conversation

@tbergerd
Copy link
Contributor

Extracted from #278 as requested.
The "term.features().is_attended()" check can never be reached because "term.is_term()" is checked at the beginning of the method (iiuc the checks are strictly equivalent).

Additionnally, the 'unwrap' call in the dead code forced a 'Debug' trait bound on the ::Err associated type.

Therefore i removed both the dead code and the now unnecessary trait bound.

@pksunkara pksunkara merged commit 7aa4afa into console-rs:master Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants