From 7c75c2a62f388f0eeeb5c5462175564799ac4a3a Mon Sep 17 00:00:00 2001 From: wilsonwatson Date: Mon, 29 Jan 2024 15:07:11 -0600 Subject: [PATCH] auto-gen linting fix maybe --- .github/workflows/gen_io_types.yml | 2 +- gen_io_types/src/main.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gen_io_types.yml b/.github/workflows/gen_io_types.yml index 1b3e079..ac3c530 100644 --- a/.github/workflows/gen_io_types.yml +++ b/.github/workflows/gen_io_types.yml @@ -18,7 +18,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable # Install OpenSSL - name: Install OpenSSL - run: sudo apt-get install libssl-dev + run: sudo apt-get update && sudo apt-get install libssl-dev # Generate IOTypes.java - name: Run gen_io_types working-directory: gen_io_types diff --git a/gen_io_types/src/main.rs b/gen_io_types/src/main.rs index b0f5c68..8ba970d 100644 --- a/gen_io_types/src/main.rs +++ b/gen_io_types/src/main.rs @@ -91,9 +91,12 @@ async fn main() { let mut outf = std::fs::File::create(source_dir.join("src/main/java/org/frc5572/robotools/IOTypes.java")).unwrap(); writeln!(&mut outf, "package org.frc5572.robotools;\n").unwrap(); + writeln!(&mut outf, "/** Auto-generated list of IO interfaces and classes. */").unwrap(); writeln!(&mut outf, "public class IOTypes {{\n").unwrap(); + writeln!(&mut outf, " /** List of interfaces disallowed a direct path to Robot.java. */").unwrap(); writeln!(&mut outf, " public static String[] ioInterfaces = {}", interfaces).unwrap(); writeln!(&mut outf, " }};").unwrap(); + writeln!(&mut outf, " /** List of classes disallowed a direct path to Robot.java. */").unwrap(); writeln!(&mut outf, " public static String[] ioClasses = {}", classes).unwrap(); writeln!(&mut outf, " }};").unwrap(); writeln!(&mut outf, "}}\n").unwrap();