Merge pull request #240 from rustfs/dev_issue_233

fix: enforce condition element presence in Functions deserialization
This commit is contained in:
loverustfs
2025-02-26 23:02:37 +08:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -131,9 +131,9 @@ impl<'de> Deserialize<'de> for Functions {
}
}
// if inner_data.is_empty() {
// return Err(Error::custom("has no condition element"));
// }
if inner_data.is_empty() {
return Err(Error::custom("has no condition element"));
}
Ok(inner_data)
}
+3
View File
@@ -7,6 +7,9 @@ repository.workspace = true
rust-version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "rustfs"
path = "src/main.rs"
[lints]
workspace = true