aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/write.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-27 12:48:46 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-27 12:48:46 +0100
commitd911ed1130bd79b6e1a8bdbf68aae6d6c334c14d (patch)
treeddc7d51c26debd3b6fb271b76be3913772b89280 /nihil.config/write.ccm
parent001c9917ace09f7b1c80d96eb067e1d37e86c546 (diff)
downloadnihil-d911ed1130bd79b6e1a8bdbf68aae6d6c334c14d.tar.gz
nihil-d911ed1130bd79b6e1a8bdbf68aae6d6c334c14d.tar.bz2
add more [[nodiscard]]
Diffstat (limited to 'nihil.config/write.ccm')
-rw-r--r--nihil.config/write.ccm4
1 files changed, 2 insertions, 2 deletions
diff --git a/nihil.config/write.ccm b/nihil.config/write.ccm
index cb35d76..8fb8151 100644
--- a/nihil.config/write.ccm
+++ b/nihil.config/write.ccm
@@ -11,12 +11,12 @@ export module nihil.config:write;
import nihil;
-export namespace nihil::config {
+namespace nihil::config {
/*
* Write all config values (except defaults) to disk.
*/
-auto write_to(std::filesystem::path const &filename) ->
+export [[nodiscard]] auto write_to(std::filesystem::path const &filename) ->
std::expected<void, error>;
};