From b57e068c2faf34ae413230c71a90db8d1dd9bade Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Sat, 14 Oct 2023 12:11:36 +0200
Subject: [PATCH] fix(#125): fix: clippy

---
 node/src/chain_spec/gen_genesis_data.rs | 3 +--
 runtime/gdev/tests/common/mod.rs        | 1 +
 xtask/src/release_runtime.rs            | 2 --
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/node/src/chain_spec/gen_genesis_data.rs b/node/src/chain_spec/gen_genesis_data.rs
index 30e010178..6d3e5639e 100644
--- a/node/src/chain_spec/gen_genesis_data.rs
+++ b/node/src/chain_spec/gen_genesis_data.rs
@@ -1330,8 +1330,7 @@ fn seconds_to_blocs(seconds: u32) -> u32 {
 #[cfg(test)]
 mod tests {
     use super::*;
-    use sp_core::crypto::Ss58Codec;
-    use std::str::FromStr;
+    use sp_core::crypto::{Ss58AddressFormat, Ss58Codec};
 
     #[test]
     fn test_timestamp_to_relative_blocs() {
diff --git a/runtime/gdev/tests/common/mod.rs b/runtime/gdev/tests/common/mod.rs
index c2d6be1f6..28f69aaaf 100644
--- a/runtime/gdev/tests/common/mod.rs
+++ b/runtime/gdev/tests/common/mod.rs
@@ -173,6 +173,7 @@ impl ExtBuilder {
 
         pallet_duniter_account::GenesisConfig::<Runtime> {
             accounts: initial_accounts,
+            treasury_balance: <Runtime as pallet_balances::Config>::ExistentialDeposit::get(),
         }
         .assimilate_storage(&mut t)
         .unwrap();
diff --git a/xtask/src/release_runtime.rs b/xtask/src/release_runtime.rs
index 9f88dfd58..d56ad1001 100644
--- a/xtask/src/release_runtime.rs
+++ b/xtask/src/release_runtime.rs
@@ -21,7 +21,6 @@ use anyhow::{anyhow, Context, Result};
 use serde::Deserialize;
 use std::fs;
 use std::io::Read;
-use std::process::Command;
 
 #[derive(Default, Deserialize)]
 struct Srtool {
@@ -85,7 +84,6 @@ pub(super) async fn release_runtime(spec_version: u32) -> Result<()> {
     let release_notes = gen_release_notes(spec_version, srtool)
         .await
         .with_context(|| "Fail to generate release notes")?;
-    let release_notes = "test release notes".to_string();
     // TODO: Call gitlab API to publish the release notes (and upload the wasm)
     println!("{}", release_notes);
     let gitlab_token =
-- 
GitLab