Skip to content

Commit edad228

Browse files
committed
refactor(lib): apply automatic clippy fixes
1 parent 3059425 commit edad228

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/lib/src/compiler/libquil.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,14 @@ mod test {
202202
assert_eq!(output.program.to_quil_or_debug(), EXPECTED_H0_OUTPUT);
203203
}
204204

205-
const BELL_STATE: &str = r##"DECLARE ro BIT[2]
205+
const BELL_STATE: &str = r"DECLARE ro BIT[2]
206206
207207
H 0
208208
CNOT 0 1
209209
210210
MEASURE 0 ro[0]
211211
MEASURE 1 ro[1]
212-
"##;
212+
";
213213

214214
#[tokio::test]
215215
async fn test_print_isa() {

crates/lib/src/executable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use std::borrow::Cow;
55
use std::collections::HashMap;
66
use std::num::NonZeroU16;
77
use std::sync::Arc;
8-
use std::time::Duration;
98

10-
use qcs_api_client_common::configuration::LoadError;
9+
10+
1111
use quil_rs::quil::ToQuilError;
1212

1313
use crate::client::{GrpcClientError, Qcs};

crates/lib/src/qpu/rewrite_arithmetic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ impl RewrittenProgram {
367367
}
368368
}
369369

370+
pub(crate) type Substitutions = IndexSet<Expression>;
371+
370372
#[cfg(test)]
371373
mod describe_rewrite_arithmetic {
372374
use std::str::FromStr;
@@ -559,5 +561,3 @@ SHIFT-PHASE 0 "rf" __SUBST[0]
559561
insta::assert_snapshot!(substitutions[0].to_quil_or_debug());
560562
}
561563
}
562-
563-
pub(crate) type Substitutions = IndexSet<Expression>;

0 commit comments

Comments
 (0)