Mark the Path(Segment) constructor as nothrow.

This commit is contained in:
Sönke Ludwig 2018-07-09 09:19:35 +02:00
parent 360f129381
commit 5f18693c49
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C

View file

@ -384,7 +384,7 @@ struct GenericPath(F) {
single-element range.
*/
this(Segment segment)
{
nothrow {
import std.range : only;
this(only(segment));
}