Mercurial > hg
view rustfmt.toml @ 51792:472699b5ddb3 stable
cffi: pass bytes instead of str to ffi.new("char[]", …)
The type annotations seem to imply that the passed values are always already bytes, but they aren’t necessarily. Before Python 3.11, the documentation stated that bytes can be used to annotate arguments whose type is actually any of bytes, bytearray, or memoryview.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 06 Aug 2024 17:53:59 +0200 |
parents | 426294d06ddc |
children |
line wrap: on
line source
edition = "2018" max_width = 79 wrap_comments = true error_on_line_overflow = true