From f549c611ab939751626b01d282a956aeb6c5bc29 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@gmail.com>
Date: Sat, 7 Oct 2023 12:24:02 +0200
Subject: [PATCH] fs/FileInfo: make constructor `explicit`

---
 src/fs/FileInfo.hxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fs/FileInfo.hxx b/src/fs/FileInfo.hxx
index 75696840f..17a7b7e53 100644
--- a/src/fs/FileInfo.hxx
+++ b/src/fs/FileInfo.hxx
@@ -30,7 +30,7 @@ class FileInfo {
 public:
 	constexpr FileInfo() noexcept = default;
 
-	FileInfo(Path path, bool follow_symlinks=true) {
+	explicit FileInfo(Path path, bool follow_symlinks=true) {
 		if (!GetFileInfo(path, *this, follow_symlinks)) {
 #ifdef _WIN32
 			throw FmtLastError("Failed to access {}", path);