Skip to content

Commit

Permalink
matrix_sdk examples: set #![type_length_limit = "1075569"]
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
martinetd committed Oct 8, 2020
1 parent a4eae10 commit 7d023eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions matrix_sdk/examples/command_bot.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// allow biggr types until rustc fix, consider removing after new rust
// stable release. see https://github.com/rust-lang/rust/issues/54540
#![type_length_limit = "1075569"]

use std::{env, process::exit};

use matrix_sdk::{
Expand Down
4 changes: 4 additions & 0 deletions matrix_sdk/examples/image_bot.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// allow biggr types until rustc fix, consider removing after new rust
// stable release. see https://github.com/rust-lang/rust/issues/54540
#![type_length_limit = "1075569"]

use std::{
env,
fs::File,
Expand Down

0 comments on commit 7d023eb

Please sign in to comment.