)]}'
{
  "commit": "1facb813711f82dccf91e99e23776def1158e090",
  "tree": "665305ecb409fbb2a4641b91e18cd2f3e52c26c5",
  "parents": [
    "793abde9759d0f9c5e5a21977c0f7fe3f281d999"
  ],
  "author": {
    "name": "Taj Pereira",
    "email": "taj@canva.com",
    "time": "Wed Mar 19 08:43:14 2025 +1030"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Mar 18 22:13:14 2025 +0000"
  },
  "message": "Panic instead of silently failing in `vello_hybrid` (#864)\n\nSmall changes in `vello_hybrid` to ensure that panics are called when\ninvariants are not obeyed rather than silently failing.\n\nImplementation like the below means that incorrect use of the API\nresults in no feedback to the user. We should panic in such cases\nbecause the user has not followed our architectural invariant of\n`prepare` being called before `render`.\n\n```rs\nfn render (...) {\n        let Some(resources) \u003d \u0026self.resources else {\n            return;\n        };\n       ....\n```\n\n---\n\nI think we could explore returning some struct from `prepare` that can\nbe passed to `render` to ensure that prepare must be called before\nrender, but I leave that as a separate exercise.\n\n---\n\nTip: Review with whitespace hidden:\n\n\n![image](https://github.com/user-attachments/assets/1110bab2-c0b8-4516-ad9b-416c42d53390)",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b12eb67542262c2907a0a77014cdfd000956fe01",
      "old_mode": 33188,
      "old_path": "sparse_strips/vello_hybrid/src/render.rs",
      "new_id": "687bf6e3c17d196d18ae86c3112258830f4cec94",
      "new_mode": 33188,
      "new_path": "sparse_strips/vello_hybrid/src/render.rs"
    }
  ]
}
