Skip to content

Commit

Permalink
Fix formatting for new renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Dec 30, 2024
1 parent 14f7dde commit 0c28f18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clients/rust/src/generated/instructions/add_memo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ impl AddMemo {
}
}

#[derive(BorshDeserialize, BorshSerialize)]
#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct AddMemoInstructionData {}

impl AddMemoInstructionData {
Expand Down
3 changes: 2 additions & 1 deletion scripts/generate-clients.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'zx/globals';
import { createFromRoot } from 'codama';
import { renderVisitor as renderJavaScriptVisitor } from '@codama/renderers-js';
import { renderVisitor as renderRustVisitor } from '@codama/renderers-rust';
import { workingDirectory } from './utils.mjs';
import { getToolchainArgument, workingDirectory } from './utils.mjs';

// Instanciate Codama.
const codama = createFromRoot(
Expand All @@ -24,5 +24,6 @@ codama.accept(
renderRustVisitor(path.join(rustClient, 'src', 'generated'), {
formatCode: true,
crateFolder: rustClient,
toolchain: getToolchainArgument('format'),
})
);

0 comments on commit 0c28f18

Please sign in to comment.