lib: fix clippy and doc

Applied two fixes – removing the unnecessary use of `to_string` and using direct
URL `<>` syntax.
This commit is contained in:
Fintan Halpenny
2024-12-06 16:07:19 +00:00
parent fb4759618f
commit de643c5afa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ impl TryFrom<Viewport> for Terminal {
}
/// FIXME Remove workaround after a new `ratatui` version with
/// https://github.com/ratatui-org/ratatui/pull/981/ included was released.
/// <https://github.com/ratatui-org/ratatui/pull/981/> included was released.
pub struct TermionBackendExt<W>
where
W: Write,
+1 -1
View File
@@ -132,7 +132,7 @@ fn another_function() {
let mut actual = String::new();
for (idx, line) in lines.iter().enumerate() {
if idx == lines.len() - 1 {
actual.push_str(&line.to_string());
actual.push_str(line);
} else {
actual.push_str(&format!("{}\n", line));
}