Skip to content

docs(logging): drop restatement comments, keep upstream cites#4582

Merged
oferchen merged 1 commit into
masterfrom
docs/comment-cleanup-logging
May 20, 2026
Merged

docs(logging): drop restatement comments, keep upstream cites#4582
oferchen merged 1 commit into
masterfrom
docs/comment-cleanup-logging

Conversation

@oferchen
Copy link
Copy Markdown
Owner

Summary

  • Drops restating test comments in config.rs, thread_local.rs, phase_timer.rs, and tracing_bridge_tests.rs that merely echoed the next assertion.
  • Trims one redundant inline comment in error_format.rs::strip_repo_prefix and replaces a vague "Fallback:" note with the actual reason for the alternate branch.
  • Drops a single-line restating comment in init_tracing.
  • Preserves every // upstream: log.c / options.c / rsync.h citation and every WHY comment (e.g. the ordering note in target_to_debug_flag, the per-level upstream info_verbosity[] / debug_verbosity[] mappings in from_verbose_level, and the "filtering happens at debug_gte" clarification).
  • No new rustdoc gaps were found; all public items already document purpose, invariants, and arguments.

Net delta: 6 files, +16 / -48.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings
  • Behavior unchanged (comments + one helper comment reword only).

…items

Removes restating test comments and trims a redundant inline restatement
in the repo-prefix helper. Preserves all upstream rsync source references
(log.c, options.c, rsync.h) and load-bearing WHY comments such as the
ordering note in `target_to_debug_flag` and the verbose-level mappings in
`from_verbose_level`. All public items already had rustdoc; no new docs
were required.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 20, 2026
@oferchen oferchen merged commit d665fc0 into master May 20, 2026
95 of 97 checks passed
@oferchen oferchen deleted the docs/comment-cleanup-logging branch May 20, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant