No need to clone the Arc

This commit is contained in:
Alexandre Bury 2017-12-31 14:14:19 +01:00
parent e4cd68a4eb
commit 65ea8eeec8

View File

@ -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(),