mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
std.mem.Allocator.construct: remove deprecation warning;
This commit is contained in:
parent
71db8df548
commit
4b46af4810
@ -44,7 +44,6 @@ pub const Allocator = struct {
|
|||||||
/// Alias of create
|
/// Alias of create
|
||||||
/// Call destroy with the result
|
/// Call destroy with the result
|
||||||
pub fn construct(self: *Allocator, init: var) Error!*@typeOf(init) {
|
pub fn construct(self: *Allocator, init: var) Error!*@typeOf(init) {
|
||||||
debug.warn("std.mem.Allocator.construct is deprecated;\n");
|
|
||||||
return self.create(init);
|
return self.create(init);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user