Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/workflows/mirror.yml

This file was deleted.

2 changes: 2 additions & 0 deletions src/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Service>,
Expand Down
10 changes: 7 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ enum Definition {
RoleList(Vec<Type>),
}

// TODO: Check why is this unused
#[allow(dead_code)]
#[derive(Deserialize, Serialize)]
enum SchemaType {
Service,
Expand All @@ -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,
Expand Down Expand Up @@ -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(())
}
}

Expand Down
Loading