Skip to content

Commit

Permalink
Dockerfile: bump Rust to 1.81 (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel authored Sep 24, 2024
1 parent 304f4eb commit b4d5159
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/src/control_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ impl ControlFile {
}
}

fn strip_value(input: &str) -> &str {
let stripped = input.trim_start_matches(|ch| matches!(ch, ' ' | '='));
pub fn strip_value(input: &str) -> &str {
let stripped = input.trim_start_matches([' ', '=']);

let trimmed = stripped.trim_start();
trimmed.trim_matches('\'')
Expand Down
2 changes: 1 addition & 1 deletion registry/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/tembo/rust:1.76-bookworm as builder
FROM quay.io/tembo/rust:1.81-bookworm as builder
COPY .sqlx .sqlx
COPY Cargo.toml Cargo.lock ./
COPY src ./src
Expand Down
2 changes: 1 addition & 1 deletion registry/src/v1/extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn parse_control_file(extension_name: String, control_file: String) -> ControlFi
let mut default_version = None;

fn strip_value(input: &str) -> &str {
let stripped = input.trim_start_matches(|ch| matches!(ch, ' ' | '='));
let stripped = input.trim_start_matches([' ', '=']);

let trimmed = stripped.trim_start();
trimmed.trim_matches('\'')
Expand Down

0 comments on commit b4d5159

Please sign in to comment.