summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-04-07 21:07:24 -0400
committerGitHub <noreply@github.com>2020-04-07 21:07:24 -0400
commitd2434bf8ada6a09834692b627489dc05dd7169bd (patch)
tree0360b8d330b0bb9b830f142da3795258aee88712
parent07efc3f301a4658727504e45105349f053ced754 (diff)
uptick: 0.3.0
-rw-r--r--Cargo.toml3
-rw-r--r--README.md8
-rw-r--r--clippy.toml1
-rw-r--r--src/app/layout_manager.rs1
4 files changed, 6 insertions, 7 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 44746c2b..4e27a90a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "bottom"
-version = "0.2.2"
+version = "0.3.0"
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
edition = "2018"
repository = "https://github.com/ClementTsang/bottom"
@@ -18,7 +18,6 @@ path = "src/main.rs"
#debug = true
debug = 1
opt-level = 3
-#lto = true
lto = "fat"
codegen-units = 1
diff --git a/README.md b/README.md
index 655d2c3a..dc761ea6 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,7 @@ cd bottom
cargo install --path .
# Download from releases and install
-curl -LO https://github.com/ClementTsang/bottom/releases/download/0.2.2/bottom_source_code.tar.gz
+curl -LO https://github.com/ClementTsang/bottom/releases/download/0.3.0/bottom_source_code.tar.gz
tar -xzvf bottom_source_code.tar.gz
cargo install --path .
```
@@ -85,8 +85,8 @@ yay bottom-bin
A `.deb` file is provided on each [release](https://github.com/ClementTsang/bottom/releases/latest):
```bash
-curl -LO https://github.com/ClementTsang/bottom/releases/download/0.2.2/bottom_0.2.2_amd64.deb
-sudo dpkg -i bottom_0.2.2_amd64.deb
+curl -LO https://github.com/ClementTsang/bottom/releases/download/0.3.0/bottom_0.3.0_amd64.deb
+sudo dpkg -i bottom_0.3.0_amd64.deb
```
### Homebrew
@@ -111,7 +111,7 @@ scoop install bottom
choco install bottom
# Version number may be required for newer releases:
-choco install bottom --version=0.2.2
+choco install bottom --version=0.3.0
```
## Usage
diff --git a/clippy.toml b/clippy.toml
new file mode 100644
index 00000000..42f9d803
--- /dev/null
+++ b/clippy.toml
@@ -0,0 +1 @@
+cognitive-complexity-threshold = 100 \ No newline at end of file
diff --git a/src/app/layout_manager.rs b/src/app/layout_manager.rs
index 522fcb4c..fe5f17be 100644
--- a/src/app/layout_manager.rs
+++ b/src/app/layout_manager.rs
@@ -17,7 +17,6 @@ type ColumnRowMappings = (u32, BTreeMap<(u32, u32), WidgetMappings>);
type ColumnMappings = (u32, BTreeMap<(u32, u32), ColumnRowMappings>);
impl BottomLayout {
- #[allow(clippy::cognitive_complexity)]
pub fn get_movement_mappings(&mut self) {
fn is_intersecting(a: (u32, u32), b: (u32, u32)) -> bool {
a.0 >= b.0 && a.1 <= b.1