mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-21 18:40:46 +08:00
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:
+1
-1
@@ -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
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user