chore: remove unnecessary temporary std::pair (#4103)

This commit is contained in:
Aaron Gokaslan
2022-08-01 15:48:44 -04:00
committed by GitHub
parent f8e8403b85
commit 88a1bb9260

View File

@@ -2073,7 +2073,7 @@ struct enum_base {
+ "\" already exists!");
}
entries[name] = std::make_pair(value, doc);
entries[name] = pybind11::make_tuple(value, doc);
m_base.attr(std::move(name)) = std::move(value);
}