mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-26 06:31:19 +00:00
chore(lint): add staged lint baseline
This commit is contained in:
committed by
r4bbit
parent
035f593f5e
commit
49d7f91ee5
@@ -3,6 +3,9 @@ name = "idl-gen"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "idl-gen"
|
||||
path = "src/main.rs"
|
||||
|
||||
@@ -16,7 +16,13 @@ fn main() {
|
||||
let dep_dirs = find_path_dep_dirs(&path);
|
||||
|
||||
match spel_framework_core::idl_gen::generate_idl_from_file_with_deps(&path, &dep_dirs) {
|
||||
Ok(idl) => println!("{}", serde_json::to_string_pretty(&idl).unwrap()),
|
||||
Ok(idl) => match serde_json::to_string_pretty(&idl) {
|
||||
Ok(json) => println!("{json}"),
|
||||
Err(e) => {
|
||||
eprintln!("Error serializing IDL to JSON: {e}");
|
||||
process::exit(1);
|
||||
}
|
||||
},
|
||||
Err(e) => {
|
||||
eprintln!("Error: {e}");
|
||||
process::exit(1);
|
||||
|
||||
Reference in New Issue
Block a user