Skip to content

Commit

Permalink
clone input
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jul 9, 2024
1 parent 3e1b047 commit 0610f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub const VALID_PRINT: &str = "HUGR valid!";
impl CmdLineArgs {
/// Run the HUGR cli and validate against an extension registry.
pub fn run(&self, registry: &ExtensionRegistry) -> Result<Hugr, CliError> {
let mut hugr: Hugr = serde_json::from_reader(self.input.into_reader()?)?;
let mut hugr: Hugr = serde_json::from_reader(self.input.clone().into_reader()?)?;
if self.mermaid {
println!("{}", hugr.mermaid_string());
}
Expand Down

0 comments on commit 0610f6a

Please sign in to comment.