Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lthiery committed Dec 20, 2023
1 parent e5bd200 commit 1600e3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/cli/positions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ pub async fn get_data(
if position_owners_map.is_empty() {
println!("Initializing position owners map");
let client = rpc::Client::default();
let position_keys = positions_data.positions.iter().map(|p| &p.1.mint).collect();
let position_keys = positions_data
.positions
.iter()
.map(|p| &p.1.mint)
.collect::<Vec<&Pubkey>>();
let owners = client.get_all_owners_by_mint(&position_keys, 100).await?;
positions_data
.positions
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl Client {

pub async fn get_all_owners_by_mint(
&self,
position_id: &Vec<&Pubkey>,
position_id: &[&Pubkey],
chunk_size: usize,
) -> Result<Vec<Pubkey>> {
use futures::future::join_all;
Expand Down
4 changes: 1 addition & 3 deletions src/server/positions/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use super::positions;
use super::{accounts::VehntBalance, *};
pub use crate::cli::positions::{
AllPositionsData, LockupType, Position, PositionOwners, Positions,
};
pub use crate::cli::positions::{AllPositionsData, LockupType, Position, PositionOwners};
use crate::types::SubDao;
use anchor_lang::solana_program::pubkey::Pubkey;
use axum::{
Expand Down

0 comments on commit 1600e3f

Please sign in to comment.