forked from blkerby/MapRandomizer
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following warnings have been fixed:
warning: unused import: `std::process::Command` --> src/bin/maprando-web.rs:2:5 warning: unused variable: `notable_strats` --> src/bin/maprando-web.rs:308:5 warning: field `start_addr` is never read --> src/customize/room_palettes.rs:198:5 warning: unused variable: `area_idx` --> src/game_data.rs:2484:14 warning: unused variable: `door` --> src/patch.rs:1642:21 warning: variable does not need to be mutable --> src/patch.rs:1642:17 NOTE: Line 1641 changed from `for door` to `for _door` as well warning: variable does not need to be mutable --> src/patch.rs:1013:21 NOTE: Commented out code below this would require `mut` if reinstated unless folded into initialization ternary-style e.g. `let new_song = if room.name != "Landing Site" { area_music[area][subarea] } else { 0x0606 };` warning: unused import: `Path` --> src/web/logic.rs:1:17 warning: unused variable: `name_no_space` --> /rust/target/release/build/sailfish-compiler-4c1b9b72b1c17739/out/templates/room-eb0b5fdf3a787627:1:10114 NOTE: Root cause was in `templates/logic/room.stpl`: Removed line 41 `let name_no_space = &difficulty.replace(" ", "");` NOTE: There are 6 "unused variable" warnings left in src/web/logic.rs Most of these are "used" in the sense that they are cloned, however it seems that rust doesn't count that as a "use" Adding `#[allow(unused_variables)]` before the properties does not work, and from what i can tell they're still working on fully implementing attributes for expressions/structs/etc (rust-lang/rust#15701) Adding the `#![allow(unused_variables)]` attribute to the top of the file silences these, but it's too broad as it covers the whole file
- Loading branch information
Showing
6 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use std::path::{Path, PathBuf}; | ||
use std::path::PathBuf; | ||
|
||
use glob::glob; | ||
use hashbrown::{HashMap, HashSet}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters