Skip to content

Commit 0f8f3ee

Browse files
committed
Work around Rust bug rust-lang/rust#88622
1 parent 567c493 commit 0f8f3ee

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

dart_example/test/main_test.dart

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:async';
2+
import 'dart:io';
23
import 'dart:typed_data';
34

45
import 'package:logging/logging.dart';
@@ -469,7 +470,9 @@ void main() {
469470
expect(err.duration?.inMilliseconds, 200);
470471
expect(err.message, "Future not completed");
471472
}
472-
});
473+
},
474+
// temporarily skipped in CI due to https://github.com/rust-lang/rust/issues/88622
475+
skip: Platform.environment['CI'] == 'true');
473476

474477
test(
475478
'test that panics in stream code are handled gracefully and merely time out',
@@ -481,13 +484,17 @@ void main() {
481484
expect(err.duration?.inMilliseconds, 20);
482485
expect(err.message, "No stream event");
483486
}
484-
});
487+
},
488+
// temporarily skipped in CI due to https://github.com/rust-lang/rust/issues/88622
489+
skip: Platform.environment['CI'] == 'true');
485490

486491
test('test that panics in sync code are handled gracefully', () {
487492
final accounts = AccountsApi();
488493
expect(() async => accounts.contactSyncPanic(),
489494
throwsA(isA<MembraneException>()));
490-
});
495+
},
496+
// temporarily skipped in CI due to https://github.com/rust-lang/rust/issues/88622
497+
skip: Platform.environment['CI'] == 'true');
491498

492499
test('test that borrowing from other namespaces works', () async {
493500
final accounts = AccountsApi();

membrane_macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn to_token_stream(
170170
let rust_outer_params: Vec<TokenStream2> = if sync {
171171
RustExternParams::try_from(&inputs)?.into()
172172
} else {
173-
vec![
173+
[
174174
vec![quote! {membrane_port: i64}],
175175
RustExternParams::try_from(&inputs)?.into(),
176176
]

0 commit comments

Comments
 (0)