Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed May 11, 2023
1 parent 346fb90 commit 0e866c3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pallets/phala/src/compute/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ pub mod pallet {
}

#[pallet::call_index(7)]
#[pallet::weight(0)]
#[pallet::weight({0})]
#[frame_support::transactional]
pub fn refresh_vault_lock_and_check(origin: OriginFor<T>, pid: u64) -> DispatchResult {
let who = ensure_signed(origin.clone())?;
Expand Down
2 changes: 1 addition & 1 deletion standalone/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub fn new_partial(
})
.transpose()?;

let executor = sc_service::new_native_or_wasm_executor(&config);
let executor = sc_service::new_native_or_wasm_executor(config);

let (client, backend, keystore_container, task_manager) =
sc_service::new_full_parts::<Block, RuntimeApi, _>(
Expand Down
2 changes: 1 addition & 1 deletion standalone/pruntime/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod runtime;
use std::{env, thread};

use clap::Parser;
use tracing::{error, info, info_span, Instrument};
use tracing::{info, info_span, Instrument};

use phactory_api::ecall_args::InitArgs;
use phala_git_revision::git_revision_with_ts;
Expand Down
1 change: 0 additions & 1 deletion standalone/pruntime/src/pal_gramine.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use anyhow::anyhow;
use parity_scale_codec::Encode;
use std::alloc::System;
use tracing::info;

use phactory_pal::{AppInfo, AppVersion, Machine, MemoryStats, MemoryUsage, Sealing, RA};
use phala_allocator::StatSizeAllocator;
Expand Down
2 changes: 1 addition & 1 deletion standalone/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn create_full<C, P, SC, B>(
)?;

io.merge(
SyncState::new(chain_spec, client.clone(), shared_authority_set, babe_worker_handle)?
SyncState::new(chain_spec, client, shared_authority_set, babe_worker_handle)?
.into_rpc(),
)?;

Expand Down

0 comments on commit 0e866c3

Please sign in to comment.