Skip to content

Commit 0d87bb2

Browse files
Fix CI formatting issues and size proof test v0.4.11
- Fixed all formatting issues identified by CI - Fixed size_proof test to use correct hex-encoded publisher key - All tests now pass locally - Ready for CI build
1 parent bcd12c8 commit 0d87bb2

24 files changed

+971
-603
lines changed

src/cli/commands/commit.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ pub fn execute(
5858
message
5959
};
6060

61-
6261
// Create the commit
6362
let commit_id = store.commit(&final_message)?;
6463

src/cli/commands/init.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ use colored::Colorize;
66
use std::env;
77

88
/// Execute the init command
9-
pub fn execute(
10-
name: Option<String>,
11-
encryption_key: Option<String>,
12-
) -> Result<()> {
9+
pub fn execute(name: Option<String>, encryption_key: Option<String>) -> Result<()> {
1310
let current_dir = env::current_dir()?;
1411

1512
println!("{}", "Initializing repository...".bright_blue());

src/cli/commands/proof/generate.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub struct ProveArgs {
2828
/// Prove specific byte range
2929
#[arg(long)]
3030
pub bytes: Option<String>,
31-
3231
}
3332

3433
pub fn execute(
@@ -186,9 +185,7 @@ fn handle_urn_prove(args: &ProveArgs) -> Result<()> {
186185

187186
fn output_proof(proof: &Proof, args: &ProveArgs) -> Result<()> {
188187
let proof_data = match args.format.as_str() {
189-
"json" => {
190-
proof.to_json()?
191-
},
188+
"json" => proof.to_json()?,
192189
"text" => format_proof_as_text(proof),
193190
"binary" => {
194191
// Serialize proof to binary format using bincode

src/cli/commands/update.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,15 @@ fn execute_json_mode(check_only: bool, force: bool) -> Result<()> {
162162
/// Download and install update using nvm-style versioned installation
163163
fn download_and_install_update_versioned(download_url: &str, version: &str) -> Result<()> {
164164
println!("{}", "Downloading update...".bright_blue());
165-
println!("{}", "Installing with nvm-style version management...".bright_green());
165+
println!(
166+
"{}",
167+
"Installing with nvm-style version management...".bright_green()
168+
);
166169

167170
// Use version manager's nvm-style installation
168171
let mut vm = VersionManager::new()
169172
.map_err(|e| anyhow::anyhow!("Failed to create version manager: {}", e))?;
170-
173+
171174
vm.install_version_from_url(version, download_url)
172175
.map_err(|e| anyhow::anyhow!("Installation failed: {}", e))?;
173176

0 commit comments

Comments
 (0)