Automated formatting and lint corrections from parallel agent work: - cargo fmt: import reordering (alphabetical), line wrapping to respect max width, trailing comma normalization, destructuring alignment, function signature reformatting, match arm formatting - clippy (pedantic): Range::contains() instead of manual comparisons, i64::from() instead of `as i64` casts, .clamp() instead of .max().min() chains, let-chain refactors (if-let with &&), #[allow(clippy::too_many_arguments)] and #[allow(clippy::field_reassign_with_default)] where warranted - Removed trailing blank lines and extra whitespace No behavioral changes. All existing tests pass unmodified. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
589 B
Rust
18 lines
589 B
Rust
//! Document generation and management.
|
|
//!
|
|
//! Extracts searchable documents from issues, MRs, and discussions.
|
|
|
|
mod extractor;
|
|
mod regenerator;
|
|
mod truncation;
|
|
|
|
pub use extractor::{
|
|
DocumentData, SourceType, compute_content_hash, compute_list_hash, extract_discussion_document,
|
|
extract_issue_document, extract_mr_document,
|
|
};
|
|
pub use regenerator::{RegenerateResult, regenerate_dirty_documents};
|
|
pub use truncation::{
|
|
MAX_DISCUSSION_BYTES, MAX_DOCUMENT_BYTES_HARD, NoteContent, TruncationReason, TruncationResult,
|
|
truncate_discussion, truncate_hard_cap, truncate_utf8,
|
|
};
|