Skip to content

Commit

Permalink
Fix compile error on old compiler versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 7, 2024
1 parent 20903cb commit ac5973e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/rest-collections/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class LocalThreadAPI : ThreadAPI {

string[] get()
{
return m_data.threads.keys;
// NOTE: .keys is not @safe on older compiler versions
return () @trusted { return m_data.threads.keys; } ();
}
}

Expand Down

0 comments on commit ac5973e

Please sign in to comment.