From c8ffc61d16c44755d8101e5babbedce2bcc96073 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 8 Apr 2020 10:24:35 -0400 Subject: [PATCH] Upping rust version, fixing min length. --- docker/dev/Dockerfile | 2 +- server/service/src/main.rs | 2 +- server/ui/src/components/navbar.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index 9eb2604..4a48647 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -9,7 +9,7 @@ RUN yarn install --pure-lockfile COPY server/ui /app/ui RUN yarn build -FROM rust:1.39 as rust +FROM rust:1.42 as rust # Install musl RUN apt-get update diff --git a/server/service/src/main.rs b/server/service/src/main.rs index 9764af0..20c3734 100644 --- a/server/service/src/main.rs +++ b/server/service/src/main.rs @@ -93,7 +93,7 @@ fn search_query( ) -> Result { let q = query.q.trim(); - if q.is_empty() || q.len() <= 3 { + if q.is_empty() || q.len() < 3 { return Err(format_err!("{{\"error\": \"{}\"}}", "Empty query".to_string())); } diff --git a/server/ui/src/components/navbar.tsx b/server/ui/src/components/navbar.tsx index 0ad77c8..3ee9d03 100644 --- a/server/ui/src/components/navbar.tsx +++ b/server/ui/src/components/navbar.tsx @@ -48,7 +48,7 @@ export class Navbar extends Component {