linebender/parley

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

Open

#200 ouverte le 6 déc. 2024

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Rust (92 forks)github user discovery
enhancementgood first issuehelp wanted

Métriques du dépôt

Stars
 (620 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur