From efa403816888ac65f887377efbbeb653144adc1a Mon Sep 17 00:00:00 2001 From: Handy-caT <37216852+Handy-caT@users.noreply.github.com> Date: Sun, 11 Jan 2026 22:29:55 +0300 Subject: [PATCH] remove mirroring from ci --- .github/workflows/mirror.yml | 22 ---------------------- src/docs.rs | 2 ++ src/main.rs | 10 +++++++--- 3 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml deleted file mode 100644 index 92fa7ed..0000000 --- a/.github/workflows/mirror.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Mirroring - -on: - delete: - pull_request: - push: - branches: - - main - -jobs: - git-sync: - runs-on: ubuntu-latest - if: ${{ github.repository == 'pathscale/EndpointGen' }} - steps: - - name: git-sync - uses: wei/git-sync@v3 - with: - source_repo: "git@github.com:pathscale/EndpointGen.git" - source_branch: "main" - destination_repo: "git@github.com:insolvent-capital/EndpointGen.git" - destination_branch: "main" - ssh_private_key: ${{ secrets._SSH_PRIVATE_KEY }} \ No newline at end of file diff --git a/src/docs.rs b/src/docs.rs index 77a8e85..949e1d6 100644 --- a/src/docs.rs +++ b/src/docs.rs @@ -9,6 +9,8 @@ use std::fs::{create_dir_all, File, OpenOptions}; use std::io::Write; use std::path::Path; +// TODO: Check why is this unused +#[allow(dead_code)] #[derive(Debug, Serialize, Deserialize)] struct Docs { services: Vec, diff --git a/src/main.rs b/src/main.rs index 9d3ae9d..f18e08a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,6 +53,8 @@ enum Definition { RoleList(Vec), } +// TODO: Check why is this unused +#[allow(dead_code)] #[derive(Deserialize, Serialize)] enum SchemaType { Service, @@ -62,6 +64,8 @@ enum SchemaType { EndpointSchemaList(String, u16), } +// TODO: Check why is this unused +#[allow(dead_code)] #[derive(Deserialize, Serialize)] struct Schema { schema_type: SchemaType, @@ -211,10 +215,10 @@ fn check_compatibility(version_config: VersionConfig) -> eyre::Result<()> { Err(eyre!("Binary version constraint not satisfied. Version: {} is specified in version.toml. Current binary version is: {}", &version_config.binary.version, &get_crate_version())) } else if !libs_version_req.matches(&caller_libs_version) { - return Err(eyre!("endpoint-libs version constraint not satisfied. Version: {} is specified in version.toml. This version of endpoint-gen requires: {}", - caller_libs_version, libs_version_requirement)); + Err(eyre!("endpoint-libs version constraint not satisfied. Version: {} is specified in version.toml. This version of endpoint-gen requires: {}", + caller_libs_version, libs_version_requirement)) } else { - return Ok(()); + Ok(()) } }