File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 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) ]
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,
Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def _read_fixture(relpath: str) -> str:
6161
6262@pytest .fixture
6363def 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
You can’t perform that action at this time.
0 commit comments