Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP: Yew frontend #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
WIP: Yew frontend #2
Changes from all commits
87c4385File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Check warning on line 103 in crates/chip8-interpreter/src/lib.rs
[clippy] crates/chip8-interpreter/src/lib.rs#L103
Raw output
crates/chip8-interpreter/src/lib.rs:103:33:w:warning: equality checks against true are unnecessary --> crates/chip8-interpreter/src/lib.rs:103:33 | 103 | let symbol = if segment == true { '◻' } else { '◼' }; | ^^^^^^^^^^^^^^^ help: try simplifying it as shown: `segment` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison = note: `#[warn(clippy::bool_comparison)]` on by default __END__Check warning on line 104 in crates/chip8-interpreter/src/lib.rs
[clippy] crates/chip8-interpreter/src/lib.rs#L104
Raw output
crates/chip8-interpreter/src/lib.rs:104:17:w:warning: variables can be used directly in the `format!` string --> crates/chip8-interpreter/src/lib.rs:104:17 | 104 | write!(f, "{}", symbol)?; | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `#[warn(clippy::uninlined_format_args)]` on by default help: change this to | 104 - write!(f, "{}", symbol)?; 104 + write!(f, "{symbol}")?; | __END__Check warning on line 106 in crates/chip8-interpreter/src/lib.rs
[clippy] crates/chip8-interpreter/src/lib.rs#L106
Raw output
crates/chip8-interpreter/src/lib.rs:106:13:w:warning: using `write!()` with a format string that ends in a single newline --> crates/chip8-interpreter/src/lib.rs:106:13 | 106 | write!(f, "\n")?; | ^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline = note: `#[warn(clippy::write_with_newline)]` on by default help: use `writeln!` instead | 106 - write!(f, "\n")?; 106 + writeln!(f)?; | __END__Check warning on line 9 in crates/frontend/src/main.rs
[clippy] crates/frontend/src/main.rs#L9
Raw output
crates/frontend/src/main.rs:9:31:w:warning: useless conversion to the same type: `std::str::Split<'_, &str>` --> crates/frontend/src/main.rs:9:31 | 9 | let display: Vec<VNode> = emu | _______________________________^ 10 | | .to_string() 11 | | .split("\n") 12 | | .into_iter() | |____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default help: consider removing `.into_iter()` | 9 ~ let display: Vec<VNode> = emu 10 + .to_string() 11 + .split("\n") | __END__