Skip to content

Commit 772cd02

Browse files
committed
chore: turn off tidy-include-cleaner because option does not work
1 parent 1a26373 commit 772cd02

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.clang-tidy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Checks: "*,
3131
-bugprone-easily-swappable-parameters,
3232
-misc-non-private-member-variables-in-classes,
3333
-llvm-header-guard,
34-
"
34+
35+
-misc-include-cleaner"
3536
CheckOptions:
3637
cppcoreguidelines-pro-type-member-init.IgnoreArrays: true
3738
readability-implicit-bool-conversion.AllowPointerConditions: true

src/handlers/commands/shopping_list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void handleShoppingListCmd(MessageRef m, BotRef bot, SMRef stateManager, api::Ap
2121
auto newState = ShoppingListView{.items = std::move(items), .canBuy = hasStorages};
2222
message::deleteMessageId(userId);
2323
renderShoppingList(newState, userId, m.chat->id, bot);
24-
stateManager.put(newState);
24+
stateManager.put(std::move(newState));
2525
};
2626

2727
} // namespace cookcookhnya::handlers::commands

0 commit comments

Comments
 (0)