Skip to content

Commit

Permalink
Merge pull request #38 from jwodder/msrv-70
Browse files Browse the repository at this point in the history
Bump MSRV back down to 1.70
  • Loading branch information
jwodder authored Jan 30, 2024
2 parents b90316d + 8e31300 commit d68749f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "dandidav"
version = "0.1.0"
edition = "2021"
rust-version = "1.74"
rust-version = "1.70"
description = "WebDAV view to DANDI Archive"
authors = ["John Thorvald Wodder II <[email protected]>"]
repository = "https://github.com/jwodder/dandidav"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![CI Status](https://github.com/jwodder/dandidav/actions/workflows/test.yml/badge.svg)](https://github.com/jwodder/dandidav/actions/workflows/test.yml)
[![codecov.io](https://codecov.io/gh/jwodder/dandidav/branch/main/graph/badge.svg)](https://codecov.io/gh/jwodder/dandidav)
[![Minimum Supported Rust Version](https://img.shields.io/badge/MSRV-1.74-orange)](https://www.rust-lang.org)
[![Minimum Supported Rust Version](https://img.shields.io/badge/MSRV-1.70-orange)](https://www.rust-lang.org)
[![MIT License](https://img.shields.io/github/license/jwodder/dandidav.svg)](https://opensource.org/licenses/MIT)

[GitHub](https://github.com/jwodder/dandidav) | [Issues](https://github.com/jwodder/dandidav/issues)
Expand Down
5 changes: 4 additions & 1 deletion src/dav/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ impl DandiDav {
req: Request<Body>,
) -> Result<Response<Body>, DavError> {
let uri_path = req.uri().path();
let resp = match req.method() {
// Performing this assignment outside the `match` magically makes this
// compile on pre-1.74 Rusts:
let m = req.method();
let resp = match m {
&Method::GET if uri_path == "/.static/styles.css" => {
// Don't add WebDAV headers
return Ok(([(CONTENT_TYPE, CSS_CONTENT_TYPE)], STYLESHEET).into_response());
Expand Down

0 comments on commit d68749f

Please sign in to comment.