Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Jun 26, 2024
1 parent d05d4fc commit 4fa35bd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
2 changes: 0 additions & 2 deletions pallets/communities/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ pub enum DecisionMethod<AssetId, MinVote> {
// Governance
pub type VoteWeight = u32;

///
#[derive(Clone, Debug, Decode, Encode, PartialEq, MaxEncodedLen, TypeInfo)]
#[scale_info(skip_type_params(AssetId, AssetBalance, NativeBalance))]
pub enum Vote<AssetId, AssetBalance, NativeBalance> {
Expand Down Expand Up @@ -107,7 +106,6 @@ where
}
}

///
#[derive(Clone, Debug, Decode, Encode, Eq, MaxEncodedLen, PartialEq, TypeInfo)]
#[scale_info(skip_type_params(T))]
#[codec(mel_bound(T: Config))]
Expand Down
26 changes: 0 additions & 26 deletions runtime/kreivo/build.rs
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
use substrate_wasm_builder::WasmBuilder;

// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(all(feature = "std", not(feature = "metadata-hash")))]
fn main() {
WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
}

#[cfg(all(feature = "std", feature = "metadata-hash"))]
fn main() {
WasmBuilder::init_with_defaults()
.enable_metadata_hash("KSM", 12)
.build()
}

#[cfg(not(feature = "std"))]
fn main() {}
1 change: 1 addition & 0 deletions runtime/kreivo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ mod benches {
);
}

#[allow(dead_code)]
struct CheckInherents;
impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {
fn check_inherents(
Expand Down

0 comments on commit 4fa35bd

Please sign in to comment.