Skip to content

Move to use RefCell in Printer#810

Open
xilec wants to merge 1 commit intogyscos:mainfrom
xilec:ref-cell-print-buffer
Open

Move to use RefCell in Printer#810
xilec wants to merge 1 commit intogyscos:mainfrom
xilec:ref-cell-print-buffer

Conversation

@xilec
Copy link
Contributor

@xilec xilec commented Feb 22, 2025

Printer already is !Sync therefore it seems more suitable use &RefCell<PrintBuffer> instead of &RwLock<PrintBuffer>. It will be much more convenient for debug (panic instead of deadlock in case of incorrect use) and faster.

@xilec
Copy link
Contributor Author

xilec commented Apr 15, 2025

@gyscos, can you review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant