Improve arg parsing

This commit is contained in:
2026-03-11 12:54:02 -07:00
parent 2af318c0ec
commit eea01616a3
19 changed files with 327 additions and 98 deletions

View File

@@ -10,7 +10,15 @@ pub struct MapExtractor {
#[async_trait::async_trait]
impl ObjectExtractor for MapExtractor {
async fn field(&self, name: &Label) -> Result<Option<PileValue>, std::io::Error> {
async fn field(
&self,
name: &Label,
args: Option<&str>,
) -> Result<Option<PileValue>, std::io::Error> {
if args.is_some() {
return Ok(None);
}
Ok(self.inner.get(name).cloned())
}