fix(clippy): resolve lints for Rust 1.96 (io_other_error, derivable_impls, manual_contains, unnecessary_sort_by, while_let_loop)
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
# 1. Cargo.toml — [workspace.package] version
|
||||
# 2. crates/nuwiki-lsp/Cargo.toml — nuwiki-core path-dep version pin
|
||||
# 3. crates/nuwiki-ls/Cargo.toml — nuwiki-lsp path-dep version pin
|
||||
# 4. plugin/nuwiki.vim — g:nuwiki_version (the Lua client reads it too)
|
||||
# 5. Cargo.lock — the version of our three own crates
|
||||
# 4. Cargo.lock — the version of our three own crates
|
||||
#
|
||||
# Cargo.lock is patched directly (awk) so this needs no cargo/toolchain —
|
||||
# the only thing that changes for our crates is their version string.
|
||||
@@ -37,10 +36,7 @@ sed -i -E "s|(nuwiki-core = \{ path = \"\.\./nuwiki-core\", version = )\"[^\"]*\
|
||||
sed -i -E "s|(nuwiki-lsp = \{ path = \"\.\./nuwiki-lsp\", version = )\"[^\"]*\"|\1\"$ver\"|" \
|
||||
crates/nuwiki-ls/Cargo.toml
|
||||
|
||||
# 4. VimL client version global (the Lua client reads this same g: var).
|
||||
sed -i -E "s/(let g:nuwiki_version = ')[^']*(')/\1$ver\2/" plugin/nuwiki.vim
|
||||
|
||||
# 5. Cargo.lock entries for our own crates. Each [[package]] block lists the
|
||||
# 4. Cargo.lock entries for our own crates. Each [[package]] block lists the
|
||||
# name line immediately followed by the version line; rewrite only those.
|
||||
for crate in nuwiki-core nuwiki-lsp nuwiki-ls; do
|
||||
awk -v c="$crate" -v v="$ver" '
|
||||
|
||||
Reference in New Issue
Block a user