From 4cd437b1ae097a6aa029d54260f4b977a7331e10 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 10 Jun 2018 11:24:52 +0200 Subject: [PATCH] Update tinyendian to 0.2.0 --- dub.json | 2 +- source/dyaml/reader.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)