Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed May 7, 2024
1 parent e6b8fce commit 221422f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rust/candid_parser/src/bindings/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,17 +485,17 @@ impl<'a> State<'a> {
}
#[derive(Serialize, Debug)]
pub struct Output {
type_defs: String,
methods: Vec<Method>,
init_args: Option<Vec<(String, String)>>,
pub type_defs: String,
pub methods: Vec<Method>,
pub init_args: Option<Vec<(String, String)>>,
}
#[derive(Serialize, Debug)]
pub struct Method {
name: String,
original_name: String,
args: Vec<(String, String)>,
rets: Vec<String>,
mode: String,
pub name: String,
pub original_name: String,
pub args: Vec<(String, String)>,
pub rets: Vec<String>,
pub mode: String,
}
pub fn emit_bindgen(tree: &Config, env: &TypeEnv, actor: &Option<Type>) -> (Output, Vec<String>) {
let (env, actor) = nominalize_all(env, actor);
Expand Down

0 comments on commit 221422f

Please sign in to comment.