From cba6e26995ae1b4660e3a4ec6c2ccd9df426e080 Mon Sep 17 00:00:00 2001 From: kayomn Date: Sun, 19 Feb 2023 16:51:38 +0000 Subject: [PATCH] Remove unnecessary coral:: prefixes in coral libray --- source/coral.cpp | 2 +- source/coral/sequence.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/coral.cpp b/source/coral.cpp index 7d7b703..4d265c4 100644 --- a/source/coral.cpp +++ b/source/coral.cpp @@ -478,7 +478,7 @@ export namespace coral { * *Note*: safety-checked behavior is triggered if `target` is smaller than `origin`. */ void copy(slice const & target, slice const & origin) { - if (target.length < origin.length) coral::unreachable(); + if (target.length < origin.length) unreachable(); for (usize i = 0; i < origin.length; i += 1) target[i] = origin[i]; } diff --git a/source/coral/sequence.cpp b/source/coral/sequence.cpp index 49cd8c9..24258cc 100644 --- a/source/coral/sequence.cpp +++ b/source/coral/sequence.cpp @@ -179,7 +179,7 @@ export namespace coral { return append_result::out_of_memory; } - coral::copy({buffer, buffer_size}, this->elements.as_bytes()); + copy({buffer, buffer_size}, this->elements.as_bytes()); this->elements = {reinterpret_cast(buffer), requested_capacity}; }