linebender/parley

All methods on `PlainEditor` should also be available on `PlainEditorDriver`

Open

#200 opened on 2024年12月6日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Rust (92 forks)github user discovery
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (620 stars)
PR merge metrics
 (PR metrics pending)

説明

The new "driver" API makes sense from an efficiency point of view. But it is super annoying that some methods are only available on PlainEditorDriver and some are only available on PlainEditor. This can be worked around by doing driver.editor., but this is an unnecessary API wart.

I can see two possibilities:

  • We manually add all methods
  • We implement Deref and DerefMut for PlainEditorDriver

コントリビューターガイド