-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add #[must_use] to builder types (#139)
* Add #[must_use] to builder types Seems like the CI's Rust version's clippy has return-self-not-must-use enabled. Not sure I'm 100% convinced we need this but it makes some sense that builders be `#[must_use]` I guess. * Fix whitespace in ui test
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
test_suite/tests/ui/fail_custom_bounds_missing_skip_type_params.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
error: Type parameter requires a `TypeInfo` bound, so either: | ||
- add it to `#[scale_info(bounds(T: TypeInfo))]` | ||
- skip it with `#[scale_info(skip_type_params(T))]` | ||
--> $DIR/fail_custom_bounds_missing_skip_type_params.rs:6:10 | ||
- add it to `#[scale_info(bounds(T: TypeInfo))]` | ||
- skip it with `#[scale_info(skip_type_params(T))]` | ||
--> tests/ui/fail_custom_bounds_missing_skip_type_params.rs:6:10 | ||
| | ||
6 | struct A<T> { | ||
| ^ |