Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jan 17, 2025
1 parent 6b36413 commit cd332cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions solana-programs/programs/cpi-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ anchor-lang = { workspace = true, features = ["init-if-needed"] }
anchor-spl = { workspace = true }
tuktuk-program = { path = "../../../tuktuk-program" }
getrandom = { version = "0.2.15", features = ["custom"] }

2 changes: 1 addition & 1 deletion solana-programs/programs/tuktuk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub mod tuktuk {
close_task_queue_v0::handler(ctx)
}

pub fn dummy_ix(ctx: Context<DummyIx>) -> Result<()> {
pub fn dummy_ix(_ctx: Context<DummyIx>) -> Result<()> {
Err(error!(crate::error::ErrorCode::DummyInstruction))
}
}
Expand Down
4 changes: 1 addition & 3 deletions tuktuk-program/src/write_return_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ pub struct WriteReturnTasksReturn {
// Fills accounts with tasks up to the maximum length of 10kb, then moves on to the next account until it is out of tasks.
// It should return a vector of the pubkeys of the accounts it used.
// Note that tuktuk does not clean up these accounts, but you can reuse them with this method (it will overwrite)
pub fn write_return_tasks<'info, I>(
args: WriteReturnTasksArgs<'info, I>,
) -> Result<WriteReturnTasksReturn>
pub fn write_return_tasks<I>(args: WriteReturnTasksArgs<'_, I>) -> Result<WriteReturnTasksReturn>
where
I: Iterator<Item = TaskReturnV0>,
{
Expand Down

0 comments on commit cd332cd

Please sign in to comment.