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)) {