deinstapel / deinstapel/cursive-tabs

can't placed `TextArea` inside tabs

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I'm trying to add tabs with `TextArea`, and its not a named

```rust
error[E0308]: mismatched types
--> tui/src/views/tab_bar.rs:7:18
|
7 | .add_tab(TextArea::new())
| ------- ^^^^^^^^^^^^^^^ expected `NamedView<_>`, found `TextArea`
| |
| arguments to this method are incorrect
|
= note: expected struct `NamedView<_>`
found struct `TextArea`
note: method defined here
--> /home/redhawk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cursive-tabs-0.7.0/src/panel.rs:142:12
|
142 | pub fn add_tab(&mut self, view: NamedView) {

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.