mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 17:10:53 +00:00
Use memchr
to speedup newline search on x86 (#3985)
This commit is contained in:
parent
f3e6ddda62
commit
e04ef42334
10 changed files with 147 additions and 114 deletions
|
@ -15,8 +15,7 @@ use rustpython_parser::{lexer, Mode, ParseError};
|
|||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt::{Debug, Formatter};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub use stylist::{LineEnding, Stylist};
|
||||
pub use stylist::Stylist;
|
||||
|
||||
/// Run round-trip source code generation on a given Python code.
|
||||
pub fn round_trip(code: &str, source_path: &str) -> Result<String, ParseError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue