Skip to content

Commit 53bd363

Browse files
authored
Bump pubky dependency (#68)
* Bump pubky dependency * Fix clippy error
1 parent ff78955 commit 53bd363

File tree

3 files changed

+9
-105
lines changed

3 files changed

+9
-105
lines changed

Cargo.lock

Lines changed: 7 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ web-sys = "0.3.77"
3030
wasm-bindgen-test = "0.3.50"
3131

3232
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
33-
pubky = "0.5.0-rc.2"
33+
pubky = "0.5.4"
3434
tokio = { version = "1.47.1", features = ["full"] }
3535
anyhow = "1.0.95"
3636

src/models/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl Validatable for PubkyAppFile {
175175
}
176176

177177
// Validate size
178-
if self.size <= 0 || self.size > MAX_SIZE {
178+
if self.size == 0 || self.size > MAX_SIZE {
179179
return Err("Validation Error: Invalid size".into());
180180
}
181181
Ok(())

0 commit comments

Comments
 (0)