mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
Change value of ConversionFlag to i8 and None to -1
This commit is contained in:
parent
e8391ee175
commit
3a8ca5ee3e
1 changed files with 5 additions and 5 deletions
|
@ -1,13 +1,13 @@
|
|||
/// Transforms a value prior to formatting it.
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||||
#[repr(u8)]
|
||||
#[repr(i8)]
|
||||
pub enum ConversionFlag {
|
||||
/// No conversion
|
||||
None = 0, // CPython uses -1 but not pleasure for us
|
||||
None = -1, // CPython uses -1
|
||||
/// Converts by calling `str(<value>)`.
|
||||
Str = b's',
|
||||
Str = b's' as i8,
|
||||
/// Converts by calling `ascii(<value>)`.
|
||||
Ascii = b'a',
|
||||
Ascii = b'a' as i8,
|
||||
/// Converts by calling `repr(<value>)`.
|
||||
Repr = b'r',
|
||||
Repr = b'r' as i8,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue