Title: More clippy rules by ShaharNaveh · Pull Request #8123 · RustPython/RustPython · GitHub
Open Graph Title: More clippy rules by ShaharNaveh · Pull Request #8123 · RustPython/RustPython
X Title: More clippy rules by ShaharNaveh · Pull Request #8123 · RustPython/RustPython
Description: Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Simplified boolean-to-integer conversions and conditional return logic across several components. Streamlined a range-counting fast path to use direct boolean-to-usize conversion. Adjusted handling for localhost IPv4 SNI to use the standard localhost constant (no behavioral change). Chores Updated the static analysis lint set in the pedantic configuration. Documentation Improved formatting of related documentation references for clarity.
Open Graph Description: Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Simplified boolean-to-integer conversions and conditional return logic across several components. Streamline...
X Description: Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Simplified boolean-to-integer conversions and conditional return logic across several components. Streamline...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8123
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a1ac3f26-a1cb-0658-7580-4d3725b795eb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DBC2:37DF90:13294AB:1B5D985:6A5F9905 |
| html-safe-nonce | 7acb8add17b96e9edb3436b2124a7335bb667f2c3920f7292442824b4be9db4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkMyOjM3REY5MDoxMzI5NEFCOjFCNUQ5ODU6NkE1Rjk5MDUiLCJ2aXNpdG9yX2lkIjoiMzAxMDk1NTQ3MTM4NDE4OTE4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | da519b069f859046fe5cf389203c0d43b81078a4802ce5cee497c48278842d8b |
| hovercard-subject-tag | pull_request:3877412160 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/RustPython/RustPython/pull/8123/files |
| twitter:image | https://avatars.githubusercontent.com/u/50263213?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/50263213?s=400&v=4 |
| og:image:alt | Closes #xxxx This PR follows our AI policy Summary Summary by CodeRabbit Refactor Simplified boolean-to-integer conversions and conditional return logic across several components. Streamline... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9353cc7b48460319d80daeeb399e4919b4abcfe6f78d37c7b457924d164a40b1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 755d210ae728fcf699d7ab1cdd9866592be6ad35 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width