aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto
diff options
context:
space:
mode:
authorxackus <14938807+xackus@users.noreply.github.com>2020-02-21 19:46:53 +0100
committerxackus <14938807+xackus@users.noreply.github.com>2020-02-21 19:46:53 +0100
commit783e8ad0319b950a1d42d5a93e4fbb9e9df1be10 (patch)
tree81b12200e10eb03167c48a7115edca5d6dbac4e4 /lib/std/crypto
parentfdae5f5a07c043d9eeefe4933bcfbd03df581fde (diff)
downloadzig-783e8ad0319b950a1d42d5a93e4fbb9e9df1be10.tar.gz
zig-783e8ad0319b950a1d42d5a93e4fbb9e9df1be10.zip
remove @bytesToSlice, @sliceToBytes from std lib
Diffstat (limited to 'lib/std/crypto')
-rw-r--r--lib/std/crypto/gimli.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/crypto/gimli.zig b/lib/std/crypto/gimli.zig
index ed2c5e764f..30304f59cf 100644
--- a/lib/std/crypto/gimli.zig
+++ b/lib/std/crypto/gimli.zig
@@ -24,11 +24,11 @@ pub const State = struct {
const Self = @This();
pub fn toSlice(self: *Self) []u8 {
- return @sliceToBytes(self.data[0..]);
+ return mem.sliceAsBytes(self.data[0..]);
}
pub fn toSliceConst(self: *Self) []const u8 {
- return @sliceToBytes(self.data[0..]);
+ return mem.sliceAsBytes(self.data[0..]);
}
pub fn permute(self: *Self) void {