replace deprecated trim_right() with trim_end()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Message-Id: <20190714115231.7002-1-mail@beyermatthias.de>embed
parent
85a70d656b
commit
1e729010c1
|
@ -240,7 +240,7 @@ impl MailView {
|
|||
let mut buf = CellBuffer::from(s);
|
||||
|
||||
if highlight_urls {
|
||||
let lines: Vec<&str> = s.split('\n').map(|l| l.trim_right()).collect();
|
||||
let lines: Vec<&str> = s.split('\n').map(|l| l.trim_end()).collect();
|
||||
let mut shift = 0;
|
||||
let mut lidx_total = 0;
|
||||
let finder = LinkFinder::new();
|
||||
|
|
|
@ -192,7 +192,7 @@ impl EnvelopeView {
|
|||
let mut buf = CellBuffer::from(s);
|
||||
|
||||
if highlight_urls {
|
||||
let lines: Vec<&str> = s.split('\n').map(|l| l.trim_right()).collect();
|
||||
let lines: Vec<&str> = s.split('\n').map(|l| l.trim_end()).collect();
|
||||
let mut shift = 0;
|
||||
let mut lidx_total = 0;
|
||||
let finder = LinkFinder::new();
|
||||
|
|
|
@ -242,7 +242,7 @@ impl Default for CellBuffer {
|
|||
|
||||
impl<'a> From<&'a str> for CellBuffer {
|
||||
fn from(s: &'a str) -> Self {
|
||||
let lines: Vec<&str> = s.lines().map(|l| l.trim_right()).collect();
|
||||
let lines: Vec<&str> = s.lines().map(|l| l.trim_end()).collect();
|
||||
let len = s.len() + lines.len();
|
||||
let mut buf = CellBuffer::new(len, 1, Cell::default());
|
||||
let mut x = 0;
|
||||
|
|
Loading…
Reference in New Issue