mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-30 08:23:53 +00:00
Rust 1.73 (#8007)
This commit is contained in:
parent
d6a4283003
commit
2c2ebf952a
9 changed files with 13 additions and 16 deletions
|
@ -149,7 +149,7 @@ impl Notebook {
|
|||
{
|
||||
let trailing_newline = reader.seek(SeekFrom::End(-1)).is_ok_and(|_| {
|
||||
let mut buf = [0; 1];
|
||||
reader.read_exact(&mut buf).is_ok_and(|_| buf[0] == b'\n')
|
||||
reader.read_exact(&mut buf).is_ok_and(|()| buf[0] == b'\n')
|
||||
});
|
||||
reader.rewind()?;
|
||||
let mut raw_notebook: RawNotebook = match serde_json::from_reader(reader.by_ref()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue