Skip to content

Commit

Permalink
refactor(lib): apply automatic clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow53 committed Jan 26, 2024
1 parent c4b01d6 commit a9e24da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/lib/src/compiler/libquil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ mod test {
assert_eq!(output.program.to_quil_or_debug(), EXPECTED_H0_OUTPUT);
}

const BELL_STATE: &str = r##"DECLARE ro BIT[2]
const BELL_STATE: &str = r"DECLARE ro BIT[2]
H 0
CNOT 0 1
MEASURE 0 ro[0]
MEASURE 1 ro[1]
"##;
";

#[tokio::test]
async fn test_print_isa() {
Expand Down
4 changes: 2 additions & 2 deletions crates/lib/src/executable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use std::borrow::Cow;
use std::collections::HashMap;
use std::num::NonZeroU16;
use std::sync::Arc;
use std::time::Duration;

use qcs_api_client_common::configuration::LoadError;


use quil_rs::quil::ToQuilError;

use crate::client::{GrpcClientError, Qcs};
Expand Down
4 changes: 2 additions & 2 deletions crates/lib/src/qpu/rewrite_arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ impl RewrittenProgram {
}
}

pub(crate) type Substitutions = IndexSet<Expression>;

#[cfg(test)]
mod describe_rewrite_arithmetic {
use std::str::FromStr;
Expand Down Expand Up @@ -559,5 +561,3 @@ SHIFT-PHASE 0 "rf" __SUBST[0]
insta::assert_snapshot!(substitutions[0].to_quil_or_debug());
}
}

pub(crate) type Substitutions = IndexSet<Expression>;

0 comments on commit a9e24da

Please sign in to comment.