Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
core1024 committed Jan 21, 2025
1 parent 8e1b72d commit 03921ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stremio_app/stremio_server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl StremioServer {
if on > buffer.len() {
continue;
}
std::io::stdout().write(&buffer).ok();
std::io::stdout().write_all(&buffer).ok();
let string_data = String::from_utf8_lossy(&buffer[..on]);
{
let lines = &mut *out_lines.lock().unwrap();
Expand Down Expand Up @@ -132,7 +132,7 @@ impl StremioServer {
if en > buffer.len() {
continue;
}
std::io::stderr().write(&buffer).ok();
std::io::stderr().write_all(&buffer).ok();
let string_data = String::from_utf8_lossy(&buffer[..en]);
// eprint!("{:?}", &buffer);
{
Expand Down Expand Up @@ -187,7 +187,7 @@ impl PartialUi for StremioServer {
data.development = true;
}

data.parent = parent.unwrap().into().clone();
data.parent = parent.expect("No parent window").into();

nwg::Notice::builder()
.parent(data.parent)
Expand Down

0 comments on commit 03921ff

Please sign in to comment.