Skip to content

Commit

Permalink
Manifest: tryParse -> tryFromToml
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Jan 7, 2025
1 parent 5c34b21 commit 57f6e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Manifest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,11 @@ Manifest::tryParse(fs::path path, const bool findRecursive) noexcept {
if (findRecursive) {
path = Try(findManifest(path.parent_path()));
}
return Manifest::tryParse(toml::parse(path), path);
return Manifest::tryFromToml(toml::parse(path), path);
}

Result<Manifest>
Manifest::tryParse(const toml::value& data, fs::path path) noexcept {
Manifest::tryFromToml(const toml::value& data, fs::path path) noexcept {
auto package = Try(Package::tryFromToml(data));
std::vector<Dependency> dependencies =
Try(parseDependencies(data, "dependencies"));
Expand Down
2 changes: 1 addition & 1 deletion src/Manifest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct Manifest {
bool findRecursive = true
) noexcept;
static Result<Manifest>
tryParse(const toml::value& data, fs::path path = "unknown") noexcept;
tryFromToml(const toml::value& data, fs::path path = "unknown") noexcept;

private:
Manifest(
Expand Down

0 comments on commit 57f6e33

Please sign in to comment.