Skip to content

Commit

Permalink
2.24.0 bump (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored Jan 29, 2025
1 parent 586ad7f commit 5515367
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
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.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "navi"
version = "2.23.0"
version = "2.24.0"
authors = ["Denis Isidoro <[email protected]>"]
edition = "2021"
description = "An interactive cheatsheet tool for the command-line"
Expand Down Expand Up @@ -53,4 +53,4 @@ path = "src/lib.rs"
[[bin]]
name = "navi"
path = "src/bin/main.rs"
bench = false
bench = false
14 changes: 12 additions & 2 deletions scripts/dot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ export CARGO_PATH="${NAVI_HOME}/core/Cargo.toml"

# TODO: bump dotfiles + remove this fn
log::note() { log::info "$@"; }
export -f log::note

cargo() {
if [ "${1:-}" = "install" ] && [ "${2:-}" = "cross" ]; then
shift 2 || true
command cargo install cross --git https://github.com/cross-rs/cross "$@"
else
command cargo "$@"
fi
}

export -f log::note cargo

dot::clone() {
git clone 'https://github.com/denisidoro/dotfiles' "$DOTFILES"
Expand All @@ -24,4 +34,4 @@ dot::clone_if_necessary() {

dot::clone_if_necessary

"${DOTFILES}/bin/dot" "$@"
"${DOTFILES}/bin/dot" "$@"
2 changes: 1 addition & 1 deletion src/filesystem.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub use crate::common::fs::{create_dir, exe_string, read_lines, remove_dir, InvalidPath, UnreadableDir};
pub use crate::common::fs::{create_dir, exe_string, read_lines, remove_dir};
use crate::env_var;
use crate::parser::Parser;
use crate::prelude::*;
Expand Down
4 changes: 3 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ impl<'a> Parser<'a> {
}

// duplicate
if !item.tags.is_empty() && !item.comment.is_empty() {}
if !item.tags.is_empty() {
item.comment.is_empty();

Check failure on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Lints

unused return value of `std::string::String::is_empty` that must be used

Check failure on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Lints

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Tests

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Tests

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Tests

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Publish x86_64-unknown-linux-musl

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Publish aarch64-unknown-linux-gnu

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Publish armv7-unknown-linux-musleabihf

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Publish aarch64-linux-android

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Publish armv7-linux-androideabi

unused return value of `std::string::String::is_empty` that must be used

Check warning on line 258 in src/parser.rs

View workflow job for this annotation

GitHub Actions / Publish x86_64-pc-windows-gnu

unused return value of `std::string::String::is_empty` that must be used
}
// blank
if line.is_empty() {
if !item.snippet.is_empty() {
Expand Down

0 comments on commit 5515367

Please sign in to comment.