-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
lowAin't annoying anyone but the QA departmentAin't annoying anyone but the QA department
Description
API Visibility Improvement
GlobEntryResult is currently declared as pub in src/manifest/glob.rs but is only used within this module. The visibility should be reduced to minimise the public API surface.
Location
src/manifest/glob.rs:47
Current Code
pub type GlobEntryResult = std::result::Result<std::path::PathBuf, glob::GlobError>;Suggested Fix
type GlobEntryResult = std::result::Result<std::path::PathBuf, glob::GlobError>;Alternatively, if needed elsewhere within the crate:
pub(crate) type GlobEntryResult = std::result::Result<std::path::PathBuf, glob::GlobError>;Benefits
- Reduces public API surface area
- Improves encapsulation
- Follows Rust best practices for API design
- Makes the module's public interface cleaner
Acceptance Criteria
- Review actual usage of
GlobEntryResultthroughout the codebase - Change visibility to private or
pub(crate)as appropriate - Ensure no compilation errors
- Verify no external dependencies on this type
References
- PR: Refactor manifest module into dedicated submodules #168
- Discussion: PR review comment
Requested by: @leynos
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lowAin't annoying anyone but the QA departmentAin't annoying anyone but the QA department