Skip to content

Commit 9ecd06b

Browse files
author
Sergey Bargamon
committed
0.6.1
Use fixed rust-clipboard crate Various performance micro optimizations
1 parent 227e5a1 commit 9ecd06b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "clink"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
authors = ["Sergey Bargamon <sergey@bargamon.ru>"]
55
edition = "2018"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
clipboard = "0.5.0"
10+
clipboard = { git = "https://github.com/Lurk/rust-clipboard", branch = "fix_osx_memory_leak" }
1111
linkify = "0.7.0"
1212
url = "2.2.2"
1313
rustop = "1.1.1"

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn main() -> Result<(), confy::ConfyError> {
8484
let index = create_index(&cfg.params);
8585
let mut finder = LinkFinder::new();
8686
finder.kinds(&[LinkKind::Url]);
87-
87+
let sleep_duration = Duration::from_millis(cfg.sleep_duration);
8888
loop {
8989
match ctx.get_contents() {
9090
Ok(current_clipboard) => {
@@ -98,6 +98,6 @@ fn main() -> Result<(), confy::ConfyError> {
9898
}
9999
Err(_e) => {}
100100
}
101-
thread::sleep(Duration::from_millis(cfg.sleep_duration))
101+
thread::sleep(sleep_duration);
102102
}
103103
}

0 commit comments

Comments
 (0)