diff --git a/Cargo.lock b/Cargo.lock index fb24d0c..49eefbc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -477,6 +477,12 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + [[package]] name = "crunchy" version = "0.2.4" @@ -1386,6 +1392,7 @@ dependencies = [ "pwhash", "rand", "regex", + "ringbuf", "rmcp", "rusqlite", "rusqlite_migration", @@ -1980,6 +1987,15 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" +[[package]] +name = "ringbuf" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79abed428d1fd2a128201cec72c5f6938e2da607c6f3745f769fabea399d950a" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "rmcp" version = "0.2.1" diff --git a/profile.bash b/profile.bash index 251d5f4..44c9b1a 100755 --- a/profile.bash +++ b/profile.bash @@ -1,9 +1,5 @@ #!/bin/bash -export KEEP_LIST_FORMAT="${KEEP_LIST_FORMAT:-id,time,size,tags,meta:full_hostname,meta:file_magic,meta:command}" -export KEEP_META_PLUGINS="${KEEP_META_PLUGINS:-binary,cwd,file_magic,full_hostname}" - - function __keep_preexec { KEEP_META_command="$1" KEEP_META_tty=${KEEP_META_tty:-$(tty)} diff --git a/src/main.rs b/src/main.rs index 500fec7..7ddcbbe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,7 +67,7 @@ fn main() -> Result<(), Error> { }, NumberOrString::Str(str) => { // For --info and --get, try to parse strings as numbers to treat them as IDs - if (args.mode.info || args.mode.get) { + if args.mode.info || args.mode.get { if let Ok(num) = str.parse::() { debug!("MAIN: Adding parsed string to ids: {}", num); ids.push(num);