Skip to content

Commit

Permalink
Merge pull request #42 from Kestrer/master
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
faern committed Mar 22, 2021
2 parents 37225af + 8b44825 commit 5aeb38e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ default-target = "x86_64-pc-windows-msvc"
targets = ["aarch64-pc-windows-msvc", "i686-pc-windows-msvc", "x86_64-pc-windows-msvc"]

[dependencies]
socket2 = "0.3.16"

[dependencies.winapi]
version = "0.3.3"
Expand All @@ -39,4 +38,5 @@ features = [
]

[dev-dependencies]
rand = "0.4"
rand = "0.8.0"
socket2 = "0.3.18"
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#![allow(bad_style)]
#![doc(html_root_url = "https://docs.rs/miow/0.3/x86_64-pc-windows-msvc/")]

extern crate socket2;
extern crate winapi;

#[cfg(test)]
Expand Down
8 changes: 6 additions & 2 deletions src/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,14 +569,18 @@ mod tests {
use std::thread;
use std::time::Duration;

use rand::{thread_rng, Rng};
use rand::{distributions::Alphanumeric, thread_rng, Rng};

use super::{anonymous, NamedPipe, NamedPipeBuilder};
use crate::iocp::CompletionPort;
use crate::Overlapped;

fn name() -> String {
let name = thread_rng().gen_ascii_chars().take(30).collect::<String>();
let name = thread_rng()
.sample_iter(Alphanumeric)
.take(30)
.map(char::from)
.collect::<String>();
format!(r"\\.\pipe\{}", name)
}

Expand Down

0 comments on commit 5aeb38e

Please sign in to comment.