summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-30 11:48:51 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-30 11:48:51 +0200
commit65c0c5607e56ca8bc7866d94b2496a25e096149a (patch)
tree2cb087a9ff524aefa6cff7fc7e1629aaa6bc886b /src/library
parent470f8001a1dba0022ec9d3e46c67c3bbc31359be (diff)
Make clippy a bit happier
Diffstat (limited to 'src/library')
-rw-r--r--src/library/text.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/text.rs b/src/library/text.rs
index 28ca2bd8..bf0d49a4 100644
--- a/src/library/text.rs
+++ b/src/library/text.rs
@@ -204,7 +204,8 @@ pub fn lang(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
fn lang_dir(iso: &str) -> Dir {
match iso.to_ascii_lowercase().as_str() {
"ar" | "he" | "fa" | "ur" | "ps" | "yi" => Dir::RTL,
- "en" | "fr" | "de" | _ => Dir::LTR,
+ "en" | "fr" | "de" => Dir::LTR,
+ _ => Dir::LTR,
}
}