Skip to content

Conversation

@refcell
Copy link
Owner

@refcell refcell commented Feb 1, 2026

Summary

  • Replace format!("{}", var) with format!("{var}") across multiple crates
  • Uses Rust 2021 edition inline format args for improved readability
  • No functional changes

Changes

  • crates/cache/src/memory.rs: 3 instances
  • crates/cache/src/redis.rs: 5 instances
  • crates/cache/src/compressed.rs: 2 instances
  • crates/backend/src/http.rs: 1 instance
  • crates/server/src/websocket.rs: 2 instances
  • crates/cli/src/server.rs: 2 instances

Replace format!("{}", var) with format!("{var}") across cache, backend,
server, and cli crates. This follows the Rust 2021 edition style and
improves code readability.
- Add backticks to ErrorPayload in error.rs doc (clippy doc_markdown)
- Inline format args in to_error_payload() (clippy uninlined_format_args)
- Add # Errors documentation to Decode and Encode trait methods (clippy missing_errors_doc)
- Add # Errors documentation to Handle::join() (clippy missing_errors_doc)
Add 16 tests covering the TokioContext implementation:
- Constructor tests (new, default)
- Spawner trait (spawn, with_label, stop, stopped)
- Clock trait (now, sleep)
- Clone/state sharing behavior
- Debug implementation
Replace format!("{}", var) with format!("{var}") in cache, backend,
server, and cli crates. This follows the Rust 2021 edition style.
@refcell refcell closed this Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants