Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BlockstreamResearch/rust-simplicity
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9d71baf18db77152280a3296c88254309f59ce34
Choose a base ref
..
head repository: BlockstreamResearch/rust-simplicity
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9845059e898d29cbf60843edbd082513987e060e
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/human_encoding/mod.rs
4 changes: 2 additions & 2 deletions src/human_encoding/mod.rs
Original file line number Diff line number Diff line change
@@ -258,7 +258,7 @@ mod tests {
.expect("Failed to finalize");
let mut mac = BitMachine::for_program(&program);
if let Some(value) = input {
mac.input(value).expect("Failed to provide input");
mac.input(&value).expect("Failed to provide input");
}
mac.exec(&program, env).expect("Failed to run program");
}
@@ -284,7 +284,7 @@ mod tests {
};
let mut mac = BitMachine::for_program(&program);
if let Some(value) = input {
if let Err(error) = mac.input(value) {
if let Err(error) = mac.input(&value) {
assert_eq!(error.to_string().as_str(), err_msg);
return;
}