Skip to content

Commit

Permalink
fix warning on unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Dec 21, 2022
1 parent cfeaa1c commit 9f0ef8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/result/result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Result {

public:
Result() : Result(Err("result is uninitialized")) {}
Result(const Ok& ok) {}
Result(const Ok&) {}
Result(const Err& err) : err_opt(err) {}

bool is_ok() const { return !err_opt.has_value(); }
Expand Down

0 comments on commit 9f0ef8a

Please sign in to comment.