Skip to content

Reduce visibility of GlobEntryResult type alias in glob.rs #174

@coderabbitai

Description

@coderabbitai

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 GlobEntryResult throughout the codebase
  • Change visibility to private or pub(crate) as appropriate
  • Ensure no compilation errors
  • Verify no external dependencies on this type

References

Requested by: @leynos

Metadata

Metadata

Assignees

Labels

lowAin't annoying anyone but the QA department

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions