mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd::json: Fix value copy to closure.
This commit is contained in:
parent
d512ef1006
commit
a7e97f124e
1 changed files with 2 additions and 2 deletions
|
@ -3593,9 +3593,9 @@ ircd::json::value::value(const std::string &s,
|
||||||
{
|
{
|
||||||
const string_view sv{s};
|
const string_view sv{s};
|
||||||
create_string(serialized(sv), [&sv]
|
create_string(serialized(sv), [&sv]
|
||||||
(mutable_buffer buf)
|
(mutable_buffer &buffer)
|
||||||
{
|
{
|
||||||
json::stringify(buf, sv);
|
json::stringify(buffer, sv);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue