From d2434bf8ada6a09834692b627489dc05dd7169bd Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Tue, 7 Apr 2020 21:07:24 -0400 Subject: uptick: 0.3.0 --- Cargo.toml | 3 +-- README.md | 8 ++++---- clippy.toml | 1 + src/app/layout_manager.rs | 1 - 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 clippy.toml 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 "] 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 -- cgit v1.2.3