view rust/hg-core/rustfmt.toml @ 42332:163b8fd7bb72

rust-python3: compatibility fix for integer conversion On python3, `to_py_object()` on the usize gives us a PyLong, whereas it is the generic `PyObject` already on python2, which fits the `py.None()` default value. Upcasting to `PyObject` explicitely in all cases solves the issue. Differential Revision: https://phab.mercurial-scm.org/D6396
author Georges Racinet <georges.racinet@octobus.net>
date Thu, 16 May 2019 21:17:14 +0200
parents dbc28c91f7ff
children
line wrap: on
line source

max_width = 79
wrap_comments = true
error_on_line_overflow = true