mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +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>>`.
|
/// Creates a new TextView using the given `Arc<Mutex<String>>`.
|
||||||
pub fn new_with_content(content: TextContent) -> Self {
|
pub fn new_with_content(content: TextContent) -> Self {
|
||||||
TextView {
|
TextView {
|
||||||
content: Arc::clone(&content.content),
|
content: content.content,
|
||||||
rows: Vec::new(),
|
rows: Vec::new(),
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
scrollbase: ScrollBase::new(),
|
scrollbase: ScrollBase::new(),
|
||||||
|
Loading…
Reference in New Issue
Block a user