Use only Span{} constructor for byte-like types where possible
This removes bloat that is not needed.
This commit is contained in:
10 files changed
+23
-23
No files matched your search
@@ -196,7 +196,7 @@ BOOST_AUTO_TEST_CASE(db_cursor_prefix_byte_test)
|
||||
for (const auto& database : TestDatabases(m_path_root)) {
|
||||
std::unique_ptr<DatabaseBatch> batch = database->MakeBatch();
|
||||
for (const auto& [k, v] : {e, p, ps, f, fs, ff, ffs}) {
|
||||
batch->Write(MakeUCharSpan(k), MakeUCharSpan(v));
|
||||
batch->Write(Span{k}, Span{v});
|
||||
}
|
||||
CheckPrefix(*batch, StringBytes(""), {e, p, ps, f, fs, ff, ffs});
|
||||
CheckPrefix(*batch, StringBytes("prefix"), {p, ps});
|
||||
|
||||
Reference in new issue
Block a user