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
References
Requested by: @leynos
API Visibility Improvement
GlobEntryResultis currently declared aspubinsrc/manifest/glob.rsbut is only used within this module. The visibility should be reduced to minimise the public API surface.Location
src/manifest/glob.rs:47Current Code
Suggested Fix
Alternatively, if needed elsewhere within the crate:
Benefits
Acceptance Criteria
GlobEntryResultthroughout the codebasepub(crate)as appropriateReferences
Requested by: @leynos