uptick: 0.3.0

This commit is contained in:
Clement Tsang 2020-04-07 21:07:24 -04:00 committed by GitHub
parent 07efc3f301
commit d2434bf8ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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

1
clippy.toml Normal file
View File

@ -0,0 +1 @@
cognitive-complexity-threshold = 100

View File

@ -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