From 4a57913ca0beafd655568fad03463f5e58140015 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 27 Oct 2019 14:27:20 -0400 Subject: [PATCH] std.target: use mem instead of std.mem --- lib/std/target.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/std/target.zig b/lib/std/target.zig index 02b29ca97b..095ba3c8e1 100644 --- a/lib/std/target.zig +++ b/lib/std/target.zig @@ -205,7 +205,7 @@ pub const Target = union(enum) { }, }; - pub fn zigTriple(self: Target, allocator: *std.mem.Allocator) ![]u8 { + pub fn zigTriple(self: Target, allocator: *mem.Allocator) ![]u8 { return std.fmt.allocPrint( allocator, "{}{}-{}-{}", @@ -216,13 +216,13 @@ pub const Target = union(enum) { ); } - pub fn allocDescription(self: Target, allocator: *std.mem.Allocator) ![]u8 { + pub fn allocDescription(self: Target, allocator: *mem.Allocator) ![]u8 { // TODO is there anything else worthy of the description that is not // already captured in the triple? return self.zigTriple(allocator); } - pub fn zigTripleNoSubArch(self: Target, allocator: *std.mem.Allocator) ![]u8 { + pub fn zigTripleNoSubArch(self: Target, allocator: *mem.Allocator) ![]u8 { return std.fmt.allocPrint( allocator, "{}-{}-{}", @@ -232,7 +232,7 @@ pub const Target = union(enum) { ); } - pub fn linuxTriple(self: Target, allocator: *std.mem.Allocator) ![]u8 { + pub fn linuxTriple(self: Target, allocator: *mem.Allocator) ![]u8 { return std.fmt.allocPrint( allocator, "{}-{}-{}",