From 5043fd81dca605ea138e4a7bd529296a8f49afa5 Mon Sep 17 00:00:00 2001
From: John Mitchell <6656977+StarArawn@users.noreply.github.com>
Date: Sat, 29 Apr 2023 16:20:02 -0400
Subject: [PATCH] Fix clippy not working with x11.

---
 .github/workflows/rust.yml | 2 +-
 Cargo.toml                 | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 1fccab4..4ad5a80 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -39,4 +39,4 @@ jobs:
     - name: Run fmt check
       run: cargo fmt --all -- --check
     - name: Run clippy
-      run: cargo clippy --no-deps -- -D warnings
+      run: cargo clippy --no-deps -- -D warnings --features "bevy/x11"
diff --git a/Cargo.toml b/Cargo.toml
index a642ac8..baef689 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -46,3 +46,6 @@ path = "examples/tabs/tabs.rs"
 [[example]]
 name = "todo"
 path = "examples/todo/todo.rs"
+
+[package.metadata.docs.rs]
+features = ["x11"]
\ No newline at end of file
-- 
GitLab