From 4789d2ca663039280c2d25eb0b75dc52d75a63ea Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sun, 14 Jul 2024 02:56:04 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20misc:=20refactor=20to=20use=20ut?= =?UTF-8?q?ils::contains?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.cpp b/src/misc.cpp index 96847b6..5de32a3 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -96,7 +96,7 @@ bool confirm_mount([[maybe_unused]] const std::string_view& part_user, bool quit } // remove current mount from all partitions list - std::erase_if(partitions, [partition](std::string_view x) { return x.find(partition) != std::string_view::npos; }); + std::erase_if(partitions, [partition](std::string_view x) { return gucc::utils::contains(x, partition); }); number_partitions -= 1; return true; }