From 560c64f2fdbff1a8aa45cf6d63322a9116b9f1ec Mon Sep 17 00:00:00 2001 From: vnprc Date: Fri, 30 Aug 2024 17:33:50 -0400 Subject: [PATCH] chore: run the code formatter --- crates/cdk/src/wallet/mod.rs | 24 +++++++++++++++--------- flake.nix | 6 ++++-- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/crates/cdk/src/wallet/mod.rs b/crates/cdk/src/wallet/mod.rs index 5517877f..36a90e9f 100644 --- a/crates/cdk/src/wallet/mod.rs +++ b/crates/cdk/src/wallet/mod.rs @@ -564,27 +564,33 @@ impl Wallet { Ok(total_amount) } - /// Generates blinded secrets to send to the mint for signing. This function is - /// appropriate if the caller is providing their own network transport. Otherwise - /// use `mint`, which makes a network request to the mint. + /// Generates blinded secrets to send to the mint for signing. This function + /// is appropriate if the caller is providing their own network + /// transport. Otherwise use `mint`, which makes a network request to + /// the mint. /// /// # Parameters /// /// - `&self`: A reference to the current instance /// - `active_keyset_id`: The ID of the active keyset /// - `quote_info_amount`: The amount to be minted - /// - `amount_split_target`: Strategy for splitting amount into discrete tokens - /// - `spending_conditions`: Optional spending conditions to apply to the minted tokens - /// - `count`: How many tokens were previously generated from this keyset + 1 + /// - `amount_split_target`: Strategy for splitting amount into discrete + /// tokens + /// - `spending_conditions`: Optional spending conditions to apply to the + /// minted tokens + /// - `count`: How many tokens were previously generated from this keyset + + /// 1 /// - `xpriv`: The extended private key used for generating secrets /// /// # Returns /// - /// A `Result` containing `PreMintSecrets` if successful, or an `Error` otherwise. + /// A `Result` containing `PreMintSecrets` if successful, or an `Error` + /// otherwise. /// /// # Errors /// - /// This function will return an error if the creation of `PreMintSecrets` fails. + /// This function will return an error if the creation of `PreMintSecrets` + /// fails. /// /// ``` pub fn generate_premint_secrets( @@ -594,7 +600,7 @@ impl Wallet { amount_split_target: &SplitTarget, spending_conditions: Option<&SpendingConditions>, count: u32, - xpriv: ExtendedPrivKey + xpriv: ExtendedPrivKey, ) -> Result { // Move the match logic into this function. match spending_conditions { diff --git a/flake.nix b/flake.nix index ece16669..6b61aa73 100644 --- a/flake.nix +++ b/flake.nix @@ -45,12 +45,14 @@ pname = "flexbox-multibuild"; src = rustSrc; }).overrideArgs commonArgs; - in rec { + in + rec { workspaceDeps = craneLib.buildWorkspaceDepsOnly { }; workspaceBuild = craneLib.buildWorkspace { cargoArtifacts = workspaceDeps; }; }); - in { + in + { devShells = flakeboxLib.mkShells { toolchain = toolchainNative; packages = [ ];