mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
No need to clone the Arc
This commit is contained in:
parent
e4cd68a4eb
commit
65ea8eeec8
@ -136,7 +136,7 @@ impl TextView {
|
||||
/// Creates a new TextView using the given `Arc<Mutex<String>>`.
|
||||
pub fn new_with_content(content: TextContent) -> Self {
|
||||
TextView {
|
||||
content: Arc::clone(&content.content),
|
||||
content: content.content,
|
||||
rows: Vec::new(),
|
||||
scrollable: true,
|
||||
scrollbase: ScrollBase::new(),
|
||||
|
Loading…
Reference in New Issue
Block a user