summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.all-contributorsrc9
-rw-r--r--README.md3
-rw-r--r--tests/layout_management_tests.rs5
3 files changed, 16 insertions, 1 deletions
diff --git a/.all-contributorsrc b/.all-contributorsrc
index adeb3f78..910ff18c 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -198,6 +198,15 @@
"contributions": [
"doc"
]
+ },
+ {
+ "login": "bowlofeggs",
+ "name": "Randy Barlow",
+ "avatar_url": "https://avatars.githubusercontent.com/u/354506?v=4",
+ "profile": "https://electronsweatshop.com",
+ "contributions": [
+ "code"
+ ]
}
],
"contributorsPerLine": 7,
diff --git a/README.md b/README.md
index 77b76fa9..4b89f07a 100644
--- a/README.md
+++ b/README.md
@@ -282,6 +282,9 @@ Thanks to all contributors ([emoji key](https://allcontributors.org/docs/en/emoj
<td align="center"><a href="https://github.com/grawlinson"><img src="https://avatars.githubusercontent.com/u/4408051?v=4?s=100" width="100px;" alt=""/><br /><sub><b>George Rawlinson</b></sub></a><br /><a href="https://github.com/ClementTsang/bottom/commits?author=grawlinson" title="Documentation">📖</a> <a href="#platform-grawlinson" title="Packaging/porting to new platform">📦</a></td>
<td align="center"><a href="https://www.frogorbits.com/"><img src="https://avatars.githubusercontent.com/u/101246?v=4?s=100" width="100px;" alt=""/><br /><sub><b>adiabatic</b></sub></a><br /><a href="https://github.com/ClementTsang/bottom/commits?author=adiabatic" title="Documentation">📖</a></td>
</tr>
+ <tr>
+ <td align="center"><a href="https://electronsweatshop.com"><img src="https://avatars.githubusercontent.com/u/354506?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Randy Barlow</b></sub></a><br /><a href="https://github.com/ClementTsang/bottom/commits?author=bowlofeggs" title="Code">💻</a></td>
+ </tr>
</table>
<!-- markdownlint-restore -->
diff --git a/tests/layout_management_tests.rs b/tests/layout_management_tests.rs
index 4b4f7a9f..3c341d0b 100644
--- a/tests/layout_management_tests.rs
+++ b/tests/layout_management_tests.rs
@@ -1,7 +1,9 @@
//! Mocks layout management, so we can check if we broke anything.
use bottom::app::layout_manager::{BottomLayout, BottomWidgetType};
-use bottom::constants::{DEFAULT_BATTERY_LAYOUT, DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
+#[cfg(feature = "battery")]
+use bottom::constants::DEFAULT_BATTERY_LAYOUT;
+use bottom::constants::{DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
use bottom::options::{layout_options::Row, Config};
use bottom::utils::error;
@@ -126,6 +128,7 @@ fn test_default_movement() {
);
}
+#[cfg(feature = "battery")]
#[test]
/// Tests battery movement in the default setup.
fn test_default_battery_movement() {