Skip to content
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

chore: fix warning #6927

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tooling/noirc_artifacts/src/debug_vars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

fn lookup_var(&self, var_id: DebugVarId) -> Option<(&str, &PrintableType)> {
self.variables.get(&var_id).and_then(|debug_var| {
let ptype = self.types.get(&debug_var.debug_type_id)?;

Check warning on line 40 in tooling/noirc_artifacts/src/debug_vars.rs

View workflow job for this annotation

GitHub Actions / Code

Unknown word (ptype)
Some((debug_var.name.as_str(), ptype))

Check warning on line 41 in tooling/noirc_artifacts/src/debug_vars.rs

View workflow job for this annotation

GitHub Actions / Code

Unknown word (ptype)
})
}

Expand All @@ -46,7 +46,7 @@
&'a self,
fn_id: &DebugFnId,
frame: &'a HashMap<DebugVarId, PrintableValue<F>>,
) -> StackFrame<F> {
) -> StackFrame<'a, F> {
let debug_fn = &self.functions.get(fn_id).expect("failed to find function metadata");

let params: Vec<&str> =
Expand All @@ -67,13 +67,13 @@

pub fn assign_var(&mut self, var_id: DebugVarId, values: &[F]) {
let type_id = &self.variables.get(&var_id).unwrap().debug_type_id;
let ptype = self.types.get(type_id).unwrap();

Check warning on line 70 in tooling/noirc_artifacts/src/debug_vars.rs

View workflow job for this annotation

GitHub Actions / Code

Unknown word (ptype)

self.frames
.last_mut()
.expect("unexpected empty stack frames")
.1
.insert(var_id, decode_printable_value(&mut values.iter().copied(), ptype));

Check warning on line 76 in tooling/noirc_artifacts/src/debug_vars.rs

View workflow job for this annotation

GitHub Actions / Code

Unknown word (ptype)
}

pub fn assign_field(&mut self, var_id: DebugVarId, indexes: Vec<u32>, values: &[F]) {
Expand Down
Loading