fix: rust 1.95.0 clippy lints and matrix-sdk 0.17 API changes

Toolchain bump surfaced new lints (derivable_impls,
unnecessary_unwrap, unnecessary_sort_by, while_let_loop,
collapsible_match, unnecessary_option_map_or_else, cmp_owned)
across bft-json-crdt and huskies-server. All fixed mechanically.

Cargo.toml: dropped the no-longer-existing `rustls-tls` matrix-sdk
feature, then chased through the 0.17 API breakage:
- Relation::Reply is now a tuple variant wrapping Reply, not a
  struct variant with `in_reply_to`
- UserIdentifier::UserIdOrLocalpart removed — use
  UserIdentifier::Matrix(MatrixUserIdentifier::new(..))
- SendMessageLikeEventResult no longer exposes event_id directly;
  it's now on the inner `response` field

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Timmy
2026-05-14 14:48:49 +01:00
parent 995c878961
commit 8625b9a7fc
13 changed files with 275 additions and 317 deletions
+2 -3
View File
@@ -200,6 +200,7 @@ pub(crate) fn resolve_path_arg(path_str: Option<&str>, cwd: &std::path::Path) ->
#[cfg(test)]
mod tests {
use super::*;
use std::path::Path;
#[test]
fn parse_no_args() {
@@ -411,9 +412,7 @@ mod tests {
fn resolve_path_arg_returns_path_for_absolute_arg() {
let cwd = PathBuf::from("/home/user/project");
let result = resolve_path_arg(Some("/some/absolute/path"), &cwd).unwrap();
assert!(
result.ends_with("absolute/path") || result == PathBuf::from("/some/absolute/path")
);
assert!(result.ends_with("absolute/path") || result == Path::new("/some/absolute/path"));
}
#[test]