-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix triggering
str_to_string
lint (#4)
* play nice with str_to_string lint * add test against clippy lint
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use cfg_aliases::cfg_aliases; | ||
|
||
#[test] | ||
fn basic_setup() { | ||
// Same as in the docs. | ||
// Note that tests build this already, but unfortunately this doesn't catch clippy lints! | ||
// See https://github.com/rust-lang/rust/issues/56232 | ||
cfg_aliases! { | ||
// Platforms | ||
wasm: { target_arch = "wasm32" }, | ||
android: { target_os = "android" }, | ||
macos: { target_os = "macos" }, | ||
linux: { target_os = "linux" }, | ||
// Backends | ||
surfman: { all(unix, feature = "surfman", not(wasm)) }, | ||
glutin: { all(feature = "glutin", not(wasm)) }, | ||
wgl: { all(windows, feature = "wgl", not(wasm)) }, | ||
dummy: { not(any(wasm, glutin, wgl, surfman)) }, | ||
}; | ||
} |