Skip to content

Commit 7d023eb

Browse files
committed
matrix_sdk examples: set #![type_length_limit = "1075569"]
Some examples no longer build after the following commits, set a bigger-than-default type_length_limit to let tests pass. The exceptions are not necessary on nightly and can be removed again after rust-lang/rust#54540 is fixed.
1 parent a4eae10 commit 7d023eb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

matrix_sdk/examples/command_bot.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// allow biggr types until rustc fix, consider removing after new rust
2+
// stable release. see https://github.com/rust-lang/rust/issues/54540
3+
#![type_length_limit = "1075569"]
4+
15
use std::{env, process::exit};
26

37
use matrix_sdk::{

matrix_sdk/examples/image_bot.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// allow biggr types until rustc fix, consider removing after new rust
2+
// stable release. see https://github.com/rust-lang/rust/issues/54540
3+
#![type_length_limit = "1075569"]
4+
15
use std::{
26
env,
37
fs::File,

0 commit comments

Comments
 (0)