Skip to content

Commit

Permalink
fmt & clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPerek committed Nov 2, 2023
1 parent 8b5c4be commit 01d898c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/webapp/src/widgets/program_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use editor::Editor;
use eeric_core::prelude::*;
use eeric_interpreter::prelude::*;
use example::Example;
use leptos::{leptos_dom::logging::console_log, *};
use leptos::*;
use top_bar::TopBar;

use crate::widgets::global_state;
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/widgets/program_view/editor.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use js_sys::Array;
use leptos::{leptos_dom::logging::console_log, *};
use leptos::*;
use wasm_bindgen::{prelude::*, JsValue};
use web_sys::HtmlDivElement;

Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/src/widgets/program_view/top_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn TopBar(selected_example: RwSignal<Example>) -> impl IntoView {
>
<div class="py-1" role="none">
<For
each=move || Example::all_combinations()
each=Example::all_combinations
key=|example| example.name()
children =move |example: Example| {
view! { <ExampleSelector example=example set_example=selected_example.write_only() /> }
Expand Down
5 changes: 4 additions & 1 deletion libs/core/src/rv_core/instruction/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ impl<'c> Executor<'c> {
.map(|instruction| self.execute(instruction.clone()))
.collect::<Result<Vec<()>, _>>()?;

self.registers.pc = self.registers.pc.wrapping_sub(instructions.len() as u64 * 4);
self.registers.pc = self
.registers
.pc
.wrapping_sub(instructions.len() as u64 * 4);
}

_ => self.vector_execute(input)?,
Expand Down
2 changes: 1 addition & 1 deletion libs/interpreter/src/interpreter/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ impl Decoder {
Addi(I {
rd,
rs1: 0,
imm12: mem_addr
imm12: mem_addr,
})
}
"nop" => Addi(I {
Expand Down

0 comments on commit 01d898c

Please sign in to comment.