From 0c0cdf2f0a16345b4311636cf4a011e2b22262ba Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Sat, 21 Jan 2023 12:03:00 -0500 Subject: [PATCH] Remove useless move found via clang-tidy Signed-off-by: Aaron Gokaslan --- include/treespec.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/treespec.h b/include/treespec.h index 5e87aef4..aa2fa87d 100644 --- a/include/treespec.h +++ b/include/treespec.h @@ -179,13 +179,8 @@ class PyTreeSpec { INTERNAL_ERROR(); } - h = H::combine(std::move(h), - n.kind, - n.arity, - n.custom, - n.num_leaves, - n.num_nodes, - std::move(data_hash)); + h = H::combine( + std::move(h), n.kind, n.arity, n.custom, n.num_leaves, n.num_nodes, data_hash); return h; }