mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00
Make Buffer::write_element
non-failable (#6613)
This commit is contained in:
parent
86ccdcc9d9
commit
daac31d2b9
9 changed files with 115 additions and 215 deletions
|
@ -206,8 +206,8 @@ impl<Context> Buffer for Formatter<'_, Context> {
|
|||
type Context = Context;
|
||||
|
||||
#[inline]
|
||||
fn write_element(&mut self, element: FormatElement) -> FormatResult<()> {
|
||||
self.buffer.write_element(element)
|
||||
fn write_element(&mut self, element: FormatElement) {
|
||||
self.buffer.write_element(element);
|
||||
}
|
||||
|
||||
fn elements(&self) -> &[FormatElement] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue