From 813810008b4c57d1f134bff7ae7e3fae3d4dc48c Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 3 Jan 2019 15:10:25 +0100 Subject: [PATCH] Replace deprecated trim_left_matches by trim_start_matches; --- lib/filetests/src/match_directive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filetests/src/match_directive.rs b/lib/filetests/src/match_directive.rs index 29c9fa6bae..a3f951f3b4 100644 --- a/lib/filetests/src/match_directive.rs +++ b/lib/filetests/src/match_directive.rs @@ -9,7 +9,7 @@ pub fn match_directive<'a>(comment: &'a str, directive: &str) -> Option<&'a str> directive.ends_with(':'), "Directive must include trailing colon" ); - let text = comment.trim_left_matches(';').trim_start(); + let text = comment.trim_start_matches(';').trim_start(); if text.starts_with(directive) { Some(text[directive.len()..].trim()) } else {