.editorconfig
author Yuya Nishihara <yuya@tcha.org>
Sun, 01 Sep 2019 17:35:14 +0900
changeset 42854 01d3ce3281cf
parent 38293 1d6066336d7b
child 45411 c25efc468a49
permissions -rw-r--r--
rust-cpython: fix unsafe inner(py).borrow_mut() calls Since self.inner is managed by PySharedState, it must not be borrowed mutably through the RefCell interface. Otherwise, the underlying object could be mutated while a reference is leaked to Python world.

# See http://EditorConfig.org for the specification

root = true

[*.py]
indent_size = 4
indent_style = space
trim_trailing_whitespace = true

[*.{c,h}]
indent_size = 8
indent_style = tab
trim_trailing_whitespace = true

[*.t]
indent_size = 2
indent_style = space
trim_trailing_whitespace = false