Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jul 2, 2024
1 parent 57b2cc2 commit 1b20945
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/libexpr/paths.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ std::string EvalState::rewriteVirtualPaths(std::string_view s, std::string_view

warn(
std::string(warning), // FIXME: should accept a string_view
positions[pos], accessor->second->showPath(CanonPath::root));
positions[pos],
accessor->second->showPath(CanonPath::root));

res.append(fetchToStore(*store, {accessor->second}, FetchMode::DryRun).hashPart());
} catch (...) {
Expand Down
4 changes: 3 additions & 1 deletion src/libexpr/primops/filterPath.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ static void prim_filterPath(EvalState & state, PosIdx pos, Value ** args, Value
auto n = state.symbols[attr.name];
if (n == "path")
path.emplace(state.coerceToPath(
attr.pos, *attr.value, context,
attr.pos,
*attr.value,
context,
"while evaluating the 'path' attribute passed to 'builtins.filterPath'"));
else if (n == "filter") {
state.forceValue(*attr.value, pos);
Expand Down

0 comments on commit 1b20945

Please sign in to comment.