Skip to content

Commit 14857b4

Browse files
Manuel HuberRedent0r
authored andcommitted
protocols: Fix rust linter error with rust v1.84
- post-process to remove box_pointers annotation for generated files - while this unblocks the build, should look for better solution: - request/teach codegen to not add certain linter annotation - update ttrpc-codegen or other dependencies Signed-off-by: Manuel Huber <mahuber@microsoft.com>
1 parent 78cfbe5 commit 14857b4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/libs/protocols/build.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,31 @@ fn real_main() -> Result<(), std::io::Error> {
240240
"self: ::std::boxed::Box<Self>",
241241
)?;
242242

243+
let box_pointers_files = vec![
244+
"src/agent_ttrpc_async.rs",
245+
"src/confidential_data_hub.rs",
246+
"src/confidential_data_hub_ttrpc.rs",
247+
"src/confidential_data_hub_ttrpc_async.rs",
248+
"src/types.rs",
249+
"src/agent.rs",
250+
"src/agent_ttrpc.rs",
251+
"src/csi.rs",
252+
"src/empty.rs",
253+
"src/gogo.rs",
254+
"src/health.rs",
255+
"src/health_ttrpc.rs",
256+
"src/health_ttrpc_async.rs",
257+
"src/oci.rs",
258+
];
259+
260+
for f in box_pointers_files {
261+
replace_text_in_file(
262+
f,
263+
"#![allow(box_pointers)]",
264+
"",
265+
)?;
266+
}
267+
243268
Ok(())
244269
}
245270

0 commit comments

Comments
 (0)