We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f2620b commit af382ddCopy full SHA for af382dd
compiler/src/lib.rs
@@ -96,7 +96,10 @@ pub fn compile(
96
// TODO: do this less hacky; ruff's parser should translate a CRLF line
97
// break in a multiline string into just an LF in the parsed value
98
#[cfg(windows)]
99
- let source = &source.replace("\r\n", "\n");
+ let source = source.replace("\r\n", "\n");
100
+ #[cfg(windows)]
101
+ let source = source.as_str();
102
+
103
let source_file = SourceFileBuilder::new(source_path, source).finish();
104
_compile(source_file, mode, opts)
105
// let index = LineIndex::from_source_text(source);
0 commit comments