mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-24 22:24:53 +02:00
uptick: 0.3.0
This commit is contained in:
parent
07efc3f301
commit
d2434bf8ad
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bottom"
|
name = "bottom"
|
||||||
version = "0.2.2"
|
version = "0.3.0"
|
||||||
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
|
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
repository = "https://github.com/ClementTsang/bottom"
|
repository = "https://github.com/ClementTsang/bottom"
|
||||||
@ -18,7 +18,6 @@ path = "src/main.rs"
|
|||||||
#debug = true
|
#debug = true
|
||||||
debug = 1
|
debug = 1
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
#lto = true
|
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ cd bottom
|
|||||||
cargo install --path .
|
cargo install --path .
|
||||||
|
|
||||||
# Download from releases and install
|
# 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
|
tar -xzvf bottom_source_code.tar.gz
|
||||||
cargo install --path .
|
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):
|
A `.deb` file is provided on each [release](https://github.com/ClementTsang/bottom/releases/latest):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -LO https://github.com/ClementTsang/bottom/releases/download/0.2.2/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.2.2_amd64.deb
|
sudo dpkg -i bottom_0.3.0_amd64.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
### Homebrew
|
### Homebrew
|
||||||
@ -111,7 +111,7 @@ scoop install bottom
|
|||||||
choco install bottom
|
choco install bottom
|
||||||
|
|
||||||
# Version number may be required for newer releases:
|
# Version number may be required for newer releases:
|
||||||
choco install bottom --version=0.2.2
|
choco install bottom --version=0.3.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
1
clippy.toml
Normal file
1
clippy.toml
Normal file
@ -0,0 +1 @@
|
|||||||
|
cognitive-complexity-threshold = 100
|
@ -17,7 +17,6 @@ type ColumnRowMappings = (u32, BTreeMap<(u32, u32), WidgetMappings>);
|
|||||||
type ColumnMappings = (u32, BTreeMap<(u32, u32), ColumnRowMappings>);
|
type ColumnMappings = (u32, BTreeMap<(u32, u32), ColumnRowMappings>);
|
||||||
|
|
||||||
impl BottomLayout {
|
impl BottomLayout {
|
||||||
#[allow(clippy::cognitive_complexity)]
|
|
||||||
pub fn get_movement_mappings(&mut self) {
|
pub fn get_movement_mappings(&mut self) {
|
||||||
fn is_intersecting(a: (u32, u32), b: (u32, u32)) -> bool {
|
fn is_intersecting(a: (u32, u32), b: (u32, u32)) -> bool {
|
||||||
a.0 >= b.0 && a.1 <= b.1
|
a.0 >= b.0 && a.1 <= b.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user