We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c02de5b commit 0bd373dCopy full SHA for 0bd373d
cursive/src/backends/curses/n.rs
@@ -405,7 +405,9 @@ impl backend::Backend for Backend {
405
}
406
407
fn print(&self, text: &str) {
408
- ncurses::addstr(text);
+ // &str is assured it doesn't contain any \0 aka nuls here due to PR 786
409
+ // thus we can ignore the return value and avoid warning: unused `Result` that must be used
410
+ let _ = ncurses::addstr(text);
411
412
413
0 commit comments