File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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) => {
Original file line number Diff line number Diff 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-
You can’t perform that action at this time.
0 commit comments