Skip to content

Commit

Permalink
chore(dev): add .envrc
Browse files Browse the repository at this point in the history
chore(version): bump to 0.1.9
  • Loading branch information
kakoc committed Feb 18, 2024
1 parent 5979c17 commit 21dcf16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake .
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target

.direnv
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "birdy"
version = "0.1.8"
version = "0.1.9"
authors = ["Konstantin Matsiushonak <[email protected]"]
edition = "2021"
description = "Screenshot tool"
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Hotkeys:
}

let screens = Screen::all().unwrap();
let original_screenshot = if let Some(screen) = screens.get(0) {
let original_screenshot = if let Some(screen) = screens.first() {
let image = screen.capture().unwrap();
image.to_vec()
} else {
Expand Down Expand Up @@ -481,7 +481,7 @@ impl Screenshot {
BORDER_COLOR,
content,
);
if let (Some(first), Some(last)) = (layout.glyphs().get(0), layout.glyphs().last())
if let (Some(first), Some(last)) = (layout.glyphs().first(), layout.glyphs().last())
{
draw_rect_filled(
&mut self.modified_screenshot,
Expand Down

0 comments on commit 21dcf16

Please sign in to comment.