Skip to content

Commit 2dec0ae

Browse files
authored
Merge pull request #72 from ArkhamCookie/lint-fix
lint fix
2 parents b75be28 + 1214ef0 commit 2dec0ae

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fn main() {
2828

2929
let config = get_config(&args);
3030
let homepage = Homepage::new(&config);
31+
#[allow(unused_mut)] // Mut needed if minify is enabled
3132
let mut rendered = match Homepage::render(&homepage) {
3233
Ok(rendered) => rendered,
3334
Err(error) => {

tests/cmds.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ mod tests {
3535
/// Test getting the version of rustypage.
3636
fn version_test() {
3737
let mut command = cargo_bin_cmd!("rustypage");
38-
let output = command
39-
.arg("-V")
40-
.unwrap()
41-
.stdout;
38+
let output = command.arg("-V").unwrap().stdout;
4239
let string_output = str::from_utf8(&output).unwrap();
4340
let expected = format!(
4441
"RustyPage: v{}
@@ -63,4 +60,3 @@ RustyPage is a simple startpage configurable with a simple TOML file.
6360
clean("./index.html");
6461
}
6562
}
66-

0 commit comments

Comments
 (0)