Skip to content

Commit 2d57f3d

Browse files
CI fixes (#538)
* don't 'deny' pedantic lints * some clippy fixes * chore: use Ankaa-3 as default test qpu after Ankaa-9Q-3 retirement --------- Co-authored-by: Jake Selig <[email protected]>
1 parent 9143706 commit 2d57f3d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

crates/lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![deny(clippy::all)]
2-
#![deny(clippy::pedantic)]
32
#![deny(clippy::cargo)]
43
#![allow(clippy::multiple_crate_versions)] // This should be enforced by cargo-deny
54
#![allow(clippy::missing_errors_doc)]
@@ -8,6 +7,7 @@
87
#![forbid(unsafe_code)]
98
#![warn(future_incompatible)]
109
#![warn(rust_2018_compatibility, rust_2018_idioms)]
10+
#![warn(clippy::pedantic)]
1111
#![warn(
1212
absolute_paths_not_starting_with_crate,
1313
anonymous_parameters,

crates/lib/src/qpu/experimental/random.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,20 @@ impl ChooseRandomRealSubRegions {
123123
.size
124124
.length
125125
.to_f64()
126-
.map_or(true, |destination_length| {
127-
destination_length % sub_region_size.into() != 0f64
128-
})
126+
.is_none_or(|destination_length| destination_length % sub_region_size.into() != 0f64)
129127
{
130128
return Err(Error::InvalidDestinationLength {
131129
destination_length: destination.size.length,
132130
sub_region_size: sub_region_size.into(),
133131
});
134132
}
135133

136-
if source.size.length.to_f64().map_or(true, |source_length| {
137-
source_length % sub_region_size.into() != 0f64
138-
}) {
134+
if source
135+
.size
136+
.length
137+
.to_f64()
138+
.is_none_or(|source_length| source_length % sub_region_size.into() != 0f64)
139+
{
139140
return Err(Error::InvalidSourceLength {
140141
source_length: source.size.length,
141142
sub_region_size: sub_region_size.into(),

crates/lib/src/qvm/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ pub async fn run_program<C: Client + ?Sized>(
189189
.run(&request, options)
190190
.await
191191
.map(|response| QvmResultData::from_memory_map(response.registers))
192-
.map_err(Into::into)
193192
}
194193

195194
/// Returns a copy of the [`Program`] with the given parameters applied to it.

crates/python/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _read_fixture(relpath: str) -> str:
6161

6262
@pytest.fixture
6363
def quantum_processor_id() -> str:
64-
return os.getenv("TEST_LIVE_QUANTUM_PROCESSOR_ID", "Ankaa-9Q-3")
64+
return os.getenv("TEST_LIVE_QUANTUM_PROCESSOR_ID", "Ankaa-3")
6565

6666

6767
@pytest.fixture

0 commit comments

Comments
 (0)