mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
fix: enforce condition element presence in Functions deserialization
feat: add binary target for rustfs
This commit is contained in:
@@ -131,9 +131,9 @@ impl<'de> Deserialize<'de> for Functions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if inner_data.is_empty() {
|
if inner_data.is_empty() {
|
||||||
// return Err(Error::custom("has no condition element"));
|
return Err(Error::custom("has no condition element"));
|
||||||
// }
|
}
|
||||||
|
|
||||||
Ok(inner_data)
|
Ok(inner_data)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ repository.workspace = true
|
|||||||
rust-version.workspace = true
|
rust-version.workspace = true
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
[[bin]]
|
||||||
|
name = "rustfs"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|||||||
Reference in New Issue
Block a user