Title: Durability data missing, results in function that always returns None. · Issue #493 · feather-rs/feather · GitHub
Open Graph Title: Durability data missing, results in function that always returns None. · Issue #493 · feather-rs/feather
X Title: Durability data missing, results in function that always returns None. · Issue #493 · feather-rs/feather
Description: Description The method: impl Item { pub fn durability(&self) -> Option
Open Graph Description: Description The method: impl Item { pub fn durability(&self) -> Option
X Description: Description The method: impl Item { pub fn durability(&self) -> Option<u32> { ... } } Always returns None. This file is generated using 'items.py' using the data from Prismarin...
Opengraph URL: https://github.com/feather-rs/feather/issues/493
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Durability data missing, results in function that always returns None. ","articleBody":"## Description\r\nThe method:\r\n```rust\r\nimpl Item {\r\n pub fn durability(\u0026self) -\u003e Option\u003cu32\u003e {\r\n ...\r\n }\r\n}\r\n``` \r\nAlways returns None. This file is generated using 'items.py' using the data from Prismarinejs/minecraft-data. However\r\nthe items.json only contains damage values for minecraft 1.14 making our function return None in every case. So currently it does the same as this implementation.\r\n```rust\r\nimpl Item{\r\n pub fn durability(\u0026self) -\u003e Option\u003cu32\u003e {\r\n None\r\n }\r\n}\r\n```\r\n\r\n# Related Issues\r\nIf #384 ever pans out, then we would want to add some sanity checks for stuff like this. ","author":{"url":"https://github.com/Miro-Andrin","@type":"Person","name":"Miro-Andrin"},"datePublished":"2021-09-27T11:58:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/493/feather/issues/493"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f58533d-9b5c-ab9f-0bb6-e7e8aa5dce16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B842:A421F:A17FD0:D25B21:6990B265 |
| html-safe-nonce | e9dfe2bad70041a58b9f46ba27062ff92123d51c2f3cec20484cce7e7d3ced0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODQyOkE0MjFGOkExN0ZEMDpEMjVCMjE6Njk5MEIyNjUiLCJ2aXNpdG9yX2lkIjoiNzI0ODgwMDYzODYzNjcwMDI2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c9e1479fc90417b71bc454fe313073e13bf4e153f0fbf0874dbf4e8e49a52229 |
| hovercard-subject-tag | issue:1008059090 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feather-rs/feather/493/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16a5322715a1f0138a7c245f4d2d55396c7c115687a079ebda5a3d3457698929/feather-rs/feather/issues/493 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16a5322715a1f0138a7c245f4d2d55396c7c115687a079ebda5a3d3457698929/feather-rs/feather/issues/493 |
| og:image:alt | Description The method: impl Item { pub fn durability(&self) -> Option |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Miro-Andrin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/feather-rs/feather git https://github.com/feather-rs/feather.git |
| octolytics-dimension-user_id | 54925191 |
| octolytics-dimension-user_login | feather-rs |
| octolytics-dimension-repository_id | 191701609 |
| octolytics-dimension-repository_nwo | feather-rs/feather |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 191701609 |
| octolytics-dimension-repository_network_root_nwo | feather-rs/feather |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width