Repository navigation
feat(zlinter): enable no_deprecated #1117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,7 +142,7 @@ pub const VTable = struct { | |
| /// A device implementation that can be used to write unit tests for datagram devices. | ||
| pub const TestDevice = struct { | ||
| arena: std.heap.ArenaAllocator, | ||
| packets: std.array_list.Managed([]u8), | ||
| packets: std.array_list.Managed([]u8), // zlinter-disable-current-line no_deprecated | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh we still one of these left to fix |
||
|
|
||
| // If empty, reads are supported, but don't yield data. | ||
| // If `null`, reads are not supported. | ||
|
|
@@ -164,7 +164,7 @@ pub const TestDevice = struct { | |
| pub fn init(input: ?[]const []const u8, write_enabled: bool) TestDevice { | ||
| return TestDevice{ | ||
| .arena = std.heap.ArenaAllocator.init(std.testing.allocator), | ||
| .packets = std.array_list.Managed([]u8).init(std.testing.allocator), | ||
| .packets = .init(std.testing.allocator), | ||
|
|
||
| .input_sequence = input, | ||
| .input_sequence_pos = 0, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,7 +131,7 @@ pub const VTable = struct { | |
| /// A device implementation that can be used to write unit tests for datagram devices. | ||
| pub const TestDevice = struct { | ||
| arena: std.heap.ArenaAllocator, | ||
| packets: std.array_list.Managed([]u8), | ||
| packets: std.array_list.Managed([]u8), // zlinter-disable-current-line no_deprecated | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto |
||
|
|
||
| // If empty, reads are supported, but don't yield data. | ||
| // If `null`, reads are not supported. | ||
|
|
@@ -152,7 +152,7 @@ pub const TestDevice = struct { | |
| pub fn init(input: ?[]const []const u8, write_enabled: bool) TestDevice { | ||
| return TestDevice{ | ||
| .arena = std.heap.ArenaAllocator.init(std.testing.allocator), | ||
| .packets = std.array_list.Managed([]u8).init(std.testing.allocator), | ||
| .packets = .init(std.testing.allocator), | ||
|
|
||
| .input_sequence = input, | ||
| .input_sequence_pos = 0, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -177,7 +177,7 @@ pub const Reader = struct { | |
| /// A device implementation that can be used to write unit tests for datagram devices. | ||
| pub const TestDevice = struct { | ||
| input: ?std.Io.Reader, | ||
| output: ?std.array_list.Managed(u8), | ||
| output: ?std.array_list.Managed(u8), // zlinter-disable-current-line no_deprecated | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto |
||
|
|
||
| connected: bool, | ||
|
|
||
|
|
@@ -189,7 +189,7 @@ pub const TestDevice = struct { | |
|
|
||
| .input = if (input) |bytes| .fixed(bytes) else null, | ||
| .output = if (write_enabled) | ||
| std.array_list.Managed(u8).init(std.testing.allocator) | ||
| std.array_list.Managed(u8).init(std.testing.allocator) // zlinter-disable-current-line no_deprecated | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto |
||
| else | ||
| null, | ||
| }; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.