Skip to content

Commit

Permalink
Apply suggestions from code review (1/2)
Browse files Browse the repository at this point in the history
Co-authored-by: jtroo <[email protected]>
  • Loading branch information
rszyma and jtroo committed Aug 2, 2023
1 parent 0fa0b3d commit 18a057a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/src/cfg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ macro_rules! anyhow_span {
}

pub struct FileContentProvider<'a> {
/// An function to load content of a file from a filepath.
/// A function to load content of a file from a filepath.
/// Optionally, it could implement caching and a mechanism preventing "file" and "./file" from loading twice.
get_file_content_fn: &'a mut dyn FnMut(&Path) -> std::result::Result<String, String>,
}
Expand Down Expand Up @@ -271,7 +271,7 @@ fn parse_cfg_raw(
KeySeqsToFKeys,
Overrides,
)> {
const INVALID_PATH_ERROR: &str = "The provided config file path is not a valid";
const INVALID_PATH_ERROR: &str = "The provided config file path is not valid";

// IDEA: Maybe store the actual content of the files here
// and get rid of `file_content` in [`sexpr::Span`]?
Expand Down

0 comments on commit 18a057a

Please sign in to comment.