Skip to content

Commit

Permalink
fix: Remove unused Windows shim import, switch write to write_all
Browse files Browse the repository at this point in the history
… to consume
  • Loading branch information
bryantbiggs committed Sep 12, 2024
1 parent f75e268 commit bd742f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion crates/shim/src/sys/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@
limitations under the License.
*/
pub(crate) mod named_pipe_logger;
pub use named_pipe_logger::NamedPipeLogger;
2 changes: 1 addition & 1 deletion crates/shim/src/sys/windows/named_pipe_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl log::Log for NamedPipeLogger {
.current_connection
.lock()
.unwrap()
.write(message.as_bytes())
.write_all(message.as_bytes())
{
Ok(_) => {}
Err(ref e) if e.kind() == io::ErrorKind::Interrupted => {
Expand Down

0 comments on commit bd742f5

Please sign in to comment.