From e86b323de94f616ef09d53a44b5c6d66ef4218ae Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 3 Jun 2022 12:29:31 +0300 Subject: [PATCH] Fix warning. --- td/telegram/LinkManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/LinkManager.cpp b/td/telegram/LinkManager.cpp index ca07fc961..3a942c2a4 100644 --- a/td/telegram/LinkManager.cpp +++ b/td/telegram/LinkManager.cpp @@ -711,7 +711,7 @@ static bool tolower_begins_with(Slice str, Slice prefix) { Result LinkManager::check_link(CSlice link, bool http_only, bool https_only) { auto result = check_link_impl(link, http_only, https_only); if (result.is_ok()) { - return std::move(result); + return result; } auto error = result.move_as_error(); if (check_utf8(link)) {