From 551f7dc05a118c5cfc1ca9f58cd82afcd218aac2 Mon Sep 17 00:00:00 2001 From: jikstra Date: Tue, 28 Apr 2020 21:22:48 +0200 Subject: [PATCH] Make starts_with_ignore_case() private --- src/qr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qr.rs b/src/qr.rs index 9f9ac77d0..6c4f21ce5 100644 --- a/src/qr.rs +++ b/src/qr.rs @@ -37,7 +37,7 @@ impl Into for Error { } } -pub fn starts_with_ignore_case(string: &str, pattern: &str) -> bool { +fn starts_with_ignore_case(string: &str, pattern: &str) -> bool { string.to_lowercase().starts_with(&pattern.to_lowercase()) }