Skip to content

Commit 41b70d4

Browse files
authored
Update dependencies (#64)
1 parent 568de90 commit 41b70d4

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ wasm-bindgen = { version = "0.2.78", optional = true }
2929

3030
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
3131
binary-install = { version = "0.0.2", optional = true }
32-
env_logger = { version = "0.9.0", optional = true }
32+
env_logger = { version = "0.10.0", optional = true }
3333
fs_extra = "1.2.0"
3434
lazy_static = "1.4.0"
3535
log = "0.4.14"
@@ -38,7 +38,7 @@ walkdir = { version = "2.3.2", optional = true }
3838
# NOTE: we don't depend on this crate but we need to activate this feature otherwise it's super slow
3939
walrus = { version = "0.19.0", features = ["parallel"] }
4040
wasm-bindgen-cli-support = "0.2.68"
41-
xtask-watch = { version = "0.1.5" }
41+
xtask-watch = "0.1.6"
4242

4343
[target.'cfg(unix)'.dependencies]
4444
libc = "0.2.112"

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[crates-url]: https://crates.io/crates/xtask-wasm
1313
[docs-badge]: https://docs.rs/xtask-wasm/badge.svg
1414
[docs-url]: https://docs.rs/xtask-wasm/
15-
[deps-badge]: https://deps.rs/crate/xtask-wasm/0.1.9/status.svg
15+
[deps-badge]: https://deps.rs/repo/github/rustminded/xtask-wasm/status.svg
1616
[deps-url]: https://deps.rs/crate/xtask-wasm
1717
[licenses-badge]: https://img.shields.io/crates/l/xtask-wasm
1818

@@ -115,7 +115,7 @@ This library gives you three structs:
115115
(using [xtask-watch](https://github.com/rustminded/xtask-watch)).
116116
* [`DevServer`](https://docs.rs/xtask-wasm/latest/xtask_wasm/dev_server/struct.DevServer.html) - Serve your project at a given IP address.
117117

118-
They all implement [`clap::Parser`](https://docs.rs/clap/3.0.14/clap/trait.Parser.html)
118+
They all implement [`clap::Parser`](https://docs.rs/clap/latest/clap/trait.Parser.html)
119119
allowing them to be added easily to an existing CLI implementation and are
120120
flexible enough to be customized for most use-cases.
121121

src/dev_server.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn serve(
189189
not_found_path: Option<impl AsRef<Path>>,
190190
) -> Result<()> {
191191
let address = SocketAddr::new(ip, port);
192-
let listener = TcpListener::bind(&address).context("cannot bind to the given address")?;
192+
let listener = TcpListener::bind(address).context("cannot bind to the given address")?;
193193

194194
log::info!("Development server running at: http://{}", &address);
195195

src/dist.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ fn sass(
387387
}
388388

389389
log::trace!("Generating dist artifacts");
390-
let walker = walkdir::WalkDir::new(&static_dir);
390+
let walker = walkdir::WalkDir::new(static_dir);
391391
for entry in walker {
392392
let entry = entry
393393
.with_context(|| format!("cannot walk into directory `{}`", &static_dir.display()))?;
394394
let source = entry.path();
395-
let dest = dist_dir.join(source.strip_prefix(&static_dir).unwrap());
395+
let dest = dist_dir.join(source.strip_prefix(static_dir).unwrap());
396396
let _ = fs::create_dir_all(dest.parent().unwrap());
397397

398398
if !source.is_file() {

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
//! (using [xtask-watch](https://github.com/rustminded/xtask-watch)).
9999
//! * [`DevServer`](crate::dev_server::DevServer) - Serve your project at a given IP address.
100100
//!
101-
//! They all implement [`clap::Parser`](https://docs.rs/clap/3.0.14/clap/trait.Parser.html)
101+
//! They all implement [`clap::Parser`](https://docs.rs/clap/latest/clap/trait.Parser.html)
102102
//! allowing them to be added easily to an existing CLI implementation and are
103103
//! flexible enough to be customized for most use-cases.
104104
//!

src/wasm_opt.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl WasmOpt {
109109
let output_path = input_path.with_extension("opt");
110110
let wasm_opt = download_wasm_opt()?;
111111

112-
let mut command = process::Command::new(&wasm_opt);
112+
let mut command = process::Command::new(wasm_opt);
113113
command
114114
.stderr(process::Stdio::inherit())
115115
.arg(input_path)
@@ -136,8 +136,8 @@ impl WasmOpt {
136136
"command `wasm-opt` failed"
137137
);
138138

139-
fs::remove_file(&input_path)?;
140-
fs::rename(&output_path, &input_path)?;
139+
fs::remove_file(input_path)?;
140+
fs::rename(&output_path, input_path)?;
141141

142142
log::info!("Wasm optimized");
143143
Ok(self)

0 commit comments

Comments
 (0)