linebender/parley

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

Open

#200 aperta il 6 dic 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Rust (92 fork)github user discovery
enhancementgood first issuehelp wanted

Metriche repository

Star
 (620 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor