aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/source/dyaml
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-10-23 19:49:43 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-11-27 19:51:25 -0500
commitc4f6c86999ec8fe3b610ac269a121c9fa424daf5 (patch)
tree9251611c030c29af99bfa59bda94521c3500ad94 /src/ext_depends/D-YAML/source/dyaml
parentnix .envrc related (diff)
dlang dub & nix build related, includes dep update
- nix-shell --pure - nix-build - dub build --compiler=ldc2 --build=release --force
Diffstat (limited to 'src/ext_depends/D-YAML/source/dyaml')
-rw-r--r--src/ext_depends/D-YAML/source/dyaml/emitter.d2
-rw-r--r--src/ext_depends/D-YAML/source/dyaml/representer.d2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ext_depends/D-YAML/source/dyaml/emitter.d b/src/ext_depends/D-YAML/source/dyaml/emitter.d
index c797eb9..a436c7c 100644
--- a/src/ext_depends/D-YAML/source/dyaml/emitter.d
+++ b/src/ext_depends/D-YAML/source/dyaml/emitter.d
@@ -906,7 +906,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
{
string tagString = tag;
- if(tagString == "!"){return tagString;}
+ if (tagString == "!") return "!";
string handle;
string suffix = tagString;
diff --git a/src/ext_depends/D-YAML/source/dyaml/representer.d b/src/ext_depends/D-YAML/source/dyaml/representer.d
index a7ca802..98c825b 100644
--- a/src/ext_depends/D-YAML/source/dyaml/representer.d
+++ b/src/ext_depends/D-YAML/source/dyaml/representer.d
@@ -142,7 +142,7 @@ Node representData(const Node data, ScalarStyle defaultScalarStyle, CollectionSt
{
// Float comparison is pretty unreliable...
auto result = representData(Node(1.0), ScalarStyle.invalid, CollectionStyle.invalid);
- assert(approxEqual(result.as!string.to!real, 1.0));
+ assert(isClose(result.as!string.to!real, 1.0));
assert(result.tag == "tag:yaml.org,2002:float");
assert(representData(Node(real.nan), ScalarStyle.invalid, CollectionStyle.invalid) == Node(".nan", "tag:yaml.org,2002:float"));