diff --git a/dub.json b/dub.json index 1108a96..67484f1 100644 --- a/dub.json +++ b/dub.json @@ -5,7 +5,7 @@ "libs": [], "importPaths": ["source"], "license": "Boost 1.0", - "dependencies": { "tinyendian" : { "version" : "~>0.1.0" } }, + "dependencies": { "tinyendian" : { "version" : "~>0.2.0" } }, "homepage": "https://github.com/dlang-community/D-YAML", "copyright": "Copyright © 2011-2014, Ferdinand Majerech", "subPackages": [ diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 82e0a3d..4a8b791 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -91,7 +91,7 @@ final class Reader /// /// Throws: ReaderException on a UTF decoding error or if there are /// nonprintable Unicode characters illegal in YAML. - this(ubyte[] buffer) @trusted pure + this(ubyte[] buffer) @safe pure { auto endianResult = fixUTFByteOrder(buffer); if(endianResult.bytesStripped > 0)