Compare commits

..

94 Commits

Author SHA1 Message Date
c0648c2b3c Remove unnecessary mut and document possible panic
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-27 14:34:14 +02:00
Valentin Brandl
bfa9ac5621 Merge pull request #667 from vbrandl/dependabot/cargo/tempfile-3.8.0
Bump tempfile from 3.7.1 to 3.8.0
2023-08-27 14:18:55 +02:00
dependabot[bot]
7ad2ce62ce Update Changelog 2023-08-21 04:07:38 +00:00
dependabot[bot]
4eded27928 Bump tempfile from 3.7.1 to 3.8.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.7.1 to 3.8.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.1...v3.8.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-21 04:07:26 +00:00
Valentin Brandl
b1c6f6ddcb Merge pull request #665 from vbrandl/dependabot/cargo/tokio-1.32.0
Bump tokio from 1.31.0 to 1.32.0
2023-08-17 10:40:40 +02:00
dependabot[bot]
71a7948795 Update Changelog 2023-08-17 08:36:31 +00:00
dependabot[bot]
65be7b7182 Bump tokio from 1.31.0 to 1.32.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.31.0...tokio-1.32.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 08:36:15 +00:00
Valentin Brandl
800a57dea2 Merge pull request #664 from vbrandl/dependabot/cargo/anyhow-1.0.75
Bump anyhow from 1.0.74 to 1.0.75
2023-08-17 10:35:17 +02:00
dependabot[bot]
ef77138915 Update Changelog 2023-08-17 04:36:24 +00:00
dependabot[bot]
6e51f3068b Bump anyhow from 1.0.74 to 1.0.75
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.74 to 1.0.75.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 04:36:11 +00:00
Valentin Brandl
9fb5cd83bb Merge pull request #663 from vbrandl/dependabot/cargo/serde_json-1.0.105
Bump serde_json from 1.0.104 to 1.0.105
2023-08-16 10:32:04 +02:00
dependabot[bot]
f6efaf5425 Update Changelog 2023-08-16 08:28:30 +00:00
dependabot[bot]
24bd6f0c57 Bump serde_json from 1.0.104 to 1.0.105
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 08:28:12 +00:00
Valentin Brandl
a2eb11aa4f Merge pull request #662 from vbrandl/dependabot/cargo/anyhow-1.0.74
Bump anyhow from 1.0.72 to 1.0.74
2023-08-16 10:08:42 +02:00
dependabot[bot]
cfa484dd18 Update Changelog 2023-08-16 08:03:43 +00:00
dependabot[bot]
f3eaa83786 Bump anyhow from 1.0.72 to 1.0.74
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.72 to 1.0.74.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.74)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 08:03:25 +00:00
Valentin Brandl
0281aa3100 Merge pull request #661 from vbrandl/dependabot/cargo/tracing-bunyan-formatter-0.3.9
Bump tracing-bunyan-formatter from 0.3.8 to 0.3.9
2023-08-16 10:02:12 +02:00
dependabot[bot]
ebfd779ac6 Update Changelog 2023-08-16 04:37:36 +00:00
dependabot[bot]
5a6a200dfc Bump tracing-bunyan-formatter from 0.3.8 to 0.3.9
Bumps [tracing-bunyan-formatter](https://github.com/LukeMathWalker/tracing-bunyan-formatter) from 0.3.8 to 0.3.9.
- [Commits](https://github.com/LukeMathWalker/tracing-bunyan-formatter/compare/v0.3.8...v0.3.9)

---
updated-dependencies:
- dependency-name: tracing-bunyan-formatter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 04:37:22 +00:00
Valentin Brandl
cafe5667e2 Merge pull request #660 from vbrandl/dependabot/cargo/tokio-1.31.0
Bump tokio from 1.30.0 to 1.31.0
2023-08-14 18:47:57 +02:00
dependabot[bot]
c8bd205e01 Update Changelog 2023-08-14 04:11:50 +00:00
dependabot[bot]
cc98174b5b Bump tokio from 1.30.0 to 1.31.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.30.0 to 1.31.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.30.0...tokio-1.31.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-14 04:11:35 +00:00
Valentin Brandl
3d84199cfb Merge pull request #659 from vbrandl/dependabot/cargo/tokio-1.30.0
Bump tokio from 1.29.1 to 1.30.0
2023-08-10 08:59:54 +02:00
dependabot[bot]
3888c8fbb1 Update Changelog 2023-08-10 04:27:31 +00:00
dependabot[bot]
620db7d074 Bump tokio from 1.29.1 to 1.30.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.29.1 to 1.30.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.1...tokio-1.30.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-10 04:27:17 +00:00
Valentin Brandl
eaec42be89 Merge pull request #658 from vbrandl/dependabot/cargo/tempfile-3.7.1
Bump tempfile from 3.7.0 to 3.7.1
2023-08-07 15:52:53 +02:00
dependabot[bot]
8e22814b4d Update Changelog 2023-08-07 12:54:49 +00:00
dependabot[bot]
e8cbbf6db8 Bump tempfile from 3.7.0 to 3.7.1
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.7.0 to 3.7.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.0...v3.7.1)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 12:54:32 +00:00
Valentin Brandl
24ca8b0bbc Merge pull request #657 from vbrandl/dependabot/cargo/serde-1.0.183
Bump serde from 1.0.181 to 1.0.183
2023-08-07 14:53:34 +02:00
dependabot[bot]
8df821536b Update Changelog 2023-08-07 08:46:39 +00:00
dependabot[bot]
751d52b640 Bump serde from 1.0.181 to 1.0.183
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.181 to 1.0.183.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.183)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 08:46:24 +00:00
Valentin Brandl
5be61a3682 Merge pull request #656 from vbrandl/dependabot/cargo/tracing-actix-web-0.7.6
Bump tracing-actix-web from 0.7.5 to 0.7.6
2023-08-07 10:44:59 +02:00
dependabot[bot]
e88f058240 Update Changelog 2023-08-07 04:18:16 +00:00
dependabot[bot]
3e21b8342f Bump tracing-actix-web from 0.7.5 to 0.7.6
Bumps [tracing-actix-web](https://github.com/LukeMathWalker/tracing-actix-web) from 0.7.5 to 0.7.6.
- [Commits](https://github.com/LukeMathWalker/tracing-actix-web/compare/v0.7.5...v0.7.6)

---
updated-dependencies:
- dependency-name: tracing-actix-web
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 04:18:03 +00:00
Valentin Brandl
77f6030b06 Merge pull request #655 from vbrandl/dependabot/cargo/serde-1.0.181
Bump serde from 1.0.180 to 1.0.181
2023-08-04 12:20:17 +02:00
dependabot[bot]
c993d9551e Update Changelog 2023-08-04 04:46:34 +00:00
dependabot[bot]
a6657a9f01 Bump serde from 1.0.180 to 1.0.181
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.180 to 1.0.181.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 04:46:20 +00:00
Valentin Brandl
34d4bbcbf6 Merge pull request #654 from vbrandl/dependabot/cargo/serde-1.0.180
Bump serde from 1.0.179 to 1.0.180
2023-08-01 16:05:19 +02:00
dependabot[bot]
eda109e63a Update Changelog 2023-08-01 05:01:42 +00:00
dependabot[bot]
a4e8abfe70 Bump serde from 1.0.179 to 1.0.180
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.179 to 1.0.180.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 05:01:26 +00:00
Valentin Brandl
43bca353d5 Merge pull request #653 from vbrandl/dependabot/cargo/serde-1.0.179
Bump serde from 1.0.177 to 1.0.179
2023-07-31 11:58:30 +02:00
dependabot[bot]
a9810ae704 Update Changelog 2023-07-31 04:06:04 +00:00
dependabot[bot]
d72eea53f0 Bump serde from 1.0.177 to 1.0.179
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.177 to 1.0.179.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.179)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 04:05:49 +00:00
Valentin Brandl
3dd6d70371 Merge pull request #652 from vbrandl/dependabot/cargo/serde-1.0.177
Bump serde from 1.0.176 to 1.0.177
2023-07-28 17:09:28 +02:00
dependabot[bot]
81f99dba3d Update Changelog 2023-07-28 04:36:57 +00:00
dependabot[bot]
2d17185a39 Bump serde from 1.0.176 to 1.0.177
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.176 to 1.0.177.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-28 04:36:44 +00:00
Valentin Brandl
88a3b3611b Merge pull request #651 from vbrandl/fix-pedantic-lints
Enable clippy::pedantic lints
2023-07-27 10:47:40 +02:00
Valentin Brandl
4b8730d6e0 Fix pedantic clippy lints
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-27 10:44:26 +02:00
Valentin Brandl
25aea0f04d Apply cargo fmt
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-27 10:38:34 +02:00
Valentin Brandl
410a602638 Enable pedantic lints
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-27 10:37:23 +02:00
Valentin Brandl
894afaa75d Fix or allow pedantic clippy lints 2023-07-27 10:37:16 +02:00
Valentin Brandl
29710d9263 Merge pull request #650 from vbrandl/dependabot/cargo/serde-1.0.176
Bump serde from 1.0.175 to 1.0.176
2023-07-27 10:33:16 +02:00
dependabot[bot]
d49a8d330b Update Changelog 2023-07-27 08:27:08 +00:00
dependabot[bot]
cb746c949b Bump serde from 1.0.175 to 1.0.176
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.175 to 1.0.176.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-27 08:26:54 +00:00
Valentin Brandl
f4a83aad2c Merge pull request #649 from vbrandl/dependabot/cargo/serde_json-1.0.104
Bump serde_json from 1.0.103 to 1.0.104
2023-07-27 10:26:14 +02:00
dependabot[bot]
5765016163 Update Changelog 2023-07-27 04:04:57 +00:00
dependabot[bot]
8ded2da3ee Bump serde_json from 1.0.103 to 1.0.104
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.103...v1.0.104)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-27 04:04:43 +00:00
Valentin Brandl
a5c99fa7f5 Merge pull request #648 from vbrandl/dependabot/cargo/serde-1.0.175
Bump serde from 1.0.173 to 1.0.175
2023-07-24 08:58:04 +02:00
dependabot[bot]
caee48f4a4 Update Changelog 2023-07-24 06:54:38 +00:00
dependabot[bot]
18af42ed58 Bump serde from 1.0.173 to 1.0.175
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.173 to 1.0.175.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.175)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 06:54:21 +00:00
Valentin Brandl
5505331599 Merge pull request #647 from vbrandl/dependabot/cargo/ructe-0.17.0
Bump ructe from 0.16.1 to 0.17.0
2023-07-24 08:53:36 +02:00
dependabot[bot]
deec0a0fa6 Update Changelog 2023-07-24 04:06:57 +00:00
dependabot[bot]
514960324c Bump ructe from 0.16.1 to 0.17.0
Bumps [ructe](https://github.com/kaj/ructe) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/kaj/ructe/releases)
- [Changelog](https://github.com/kaj/ructe/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kaj/ructe/compare/v0.16.1...v0.17.0)

---
updated-dependencies:
- dependency-name: ructe
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 04:06:44 +00:00
Valentin Brandl
f86c59fe41 Merge pull request #646 from vbrandl/dependabot/cargo/tempfile-3.7.0
Bump tempfile from 3.6.0 to 3.7.0
2023-07-21 13:05:45 +02:00
dependabot[bot]
f7366f8939 Update Changelog 2023-07-21 11:02:09 +00:00
dependabot[bot]
0c0c2331b1 Bump tempfile from 3.6.0 to 3.7.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.6.0 to 3.7.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-21 11:01:52 +00:00
Valentin Brandl
92f3a15384 Merge pull request #645 from vbrandl/dependabot/cargo/serde-1.0.173
Bump serde from 1.0.171 to 1.0.173
2023-07-21 13:00:38 +02:00
dependabot[bot]
93de768362 Update Changelog 2023-07-20 04:29:53 +00:00
dependabot[bot]
ebee3bb272 Bump serde from 1.0.171 to 1.0.173
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.171 to 1.0.173.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.173)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-20 04:29:40 +00:00
Valentin Brandl
23587a7099 Merge pull request #644 from vbrandl/dependabot/cargo/serde_json-1.0.103
Bump serde_json from 1.0.102 to 1.0.103
2023-07-18 09:55:25 +02:00
dependabot[bot]
648e2b47ba Update Changelog 2023-07-18 07:51:27 +00:00
dependabot[bot]
6f58f1f769 Bump serde_json from 1.0.102 to 1.0.103
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.102...v1.0.103)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 07:51:08 +00:00
Valentin Brandl
b4bd8d2176 Merge pull request #643 from vbrandl/dependabot/cargo/anyhow-1.0.72
Bump anyhow from 1.0.71 to 1.0.72
2023-07-18 09:50:12 +02:00
dependabot[bot]
19bc8126a8 Update Changelog 2023-07-18 07:18:24 +00:00
dependabot[bot]
a790b6cca6 Bump anyhow from 1.0.71 to 1.0.72
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 07:18:08 +00:00
Valentin Brandl
ae22e0f385 Merge pull request #642 from vbrandl/dependabot/cargo/tracing-bunyan-formatter-0.3.8
Bump tracing-bunyan-formatter from 0.3.7 to 0.3.8
2023-07-18 09:17:25 +02:00
dependabot[bot]
c9ccb2891c Update Changelog 2023-07-17 04:07:27 +00:00
dependabot[bot]
9fbbad7157 Bump tracing-bunyan-formatter from 0.3.7 to 0.3.8
Bumps [tracing-bunyan-formatter](https://github.com/LukeMathWalker/tracing-bunyan-formatter) from 0.3.7 to 0.3.8.
- [Commits](https://github.com/LukeMathWalker/tracing-bunyan-formatter/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: tracing-bunyan-formatter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-17 04:07:13 +00:00
Valentin Brandl
3789ddd152 Merge pull request #641 from vbrandl/dependabot/cargo/serde_json-1.0.102
Bump serde_json from 1.0.100 to 1.0.102
2023-07-12 20:07:22 +02:00
dependabot[bot]
f25e883fd1 Update Changelog 2023-07-12 04:23:46 +00:00
dependabot[bot]
a684341cd3 Bump serde_json from 1.0.100 to 1.0.102
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.100 to 1.0.102.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.100...v1.0.102)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-12 04:23:31 +00:00
Valentin Brandl
3f42a03fa8 Merge pull request #640 from vbrandl/dependabot/cargo/serde-1.0.171
Bump serde from 1.0.167 to 1.0.171
2023-07-10 08:33:28 +02:00
dependabot[bot]
8a71b308df Update Changelog 2023-07-10 04:12:17 +00:00
dependabot[bot]
37f8a1d32e Bump serde from 1.0.167 to 1.0.171
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.167 to 1.0.171.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.171)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 04:12:03 +00:00
Valentin Brandl
84686aecdb Merge pull request #639 from vbrandl/dependabot/cargo/serde-1.0.167
Bump serde from 1.0.166 to 1.0.167
2023-07-07 09:30:43 +02:00
dependabot[bot]
208a6db95c Update Changelog 2023-07-07 04:30:31 +00:00
dependabot[bot]
d43ef2402e Bump serde from 1.0.166 to 1.0.167
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.166 to 1.0.167.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 04:30:18 +00:00
Valentin Brandl
14e353fd26 Merge pull request #638 from vbrandl/dependabot/cargo/vergen-8.2.4
Bump vergen from 8.2.3 to 8.2.4
2023-07-06 09:29:42 +02:00
dependabot[bot]
0735399ff9 Update Changelog 2023-07-06 04:09:58 +00:00
dependabot[bot]
ef1e53637e Bump vergen from 8.2.3 to 8.2.4
Bumps [vergen](https://github.com/rustyhorde/vergen) from 8.2.3 to 8.2.4.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/8.2.3...8.2.4)

---
updated-dependencies:
- dependency-name: vergen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 04:09:42 +00:00
Valentin Brandl
453963193f Merge pull request #637 from vbrandl/dependabot/cargo/serde_json-1.0.100
Bump serde_json from 1.0.99 to 1.0.100
2023-07-05 10:01:10 +02:00
dependabot[bot]
7ebc300d6f Update Changelog 2023-07-05 04:26:58 +00:00
dependabot[bot]
0520679022 Bump serde_json from 1.0.99 to 1.0.100
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.99...v1.0.100)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 04:26:40 +00:00
Valentin Brandl
7b50187daa Merge pull request #635 from vbrandl/dependabot/cargo/vergen-8.2.3
Bump vergen from 8.2.1 to 8.2.3
2023-07-04 10:04:31 +02:00
11 changed files with 124 additions and 114 deletions

View File

@@ -42,13 +42,9 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Clippy Linting
run: cargo clippy --all-features -- -Dclippy::all
# TODO
# run: cargo clippy --all-features -- -Dclippy::all -Dclippy::pedantic
run: cargo clippy --all-features -- -Dclippy::all -Dclippy::pedantic
- name: Clippy Test Linting
run: cargo clippy --tests -- -Dclippy::all
# TODO
# run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
test:

View File

@@ -5,16 +5,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Dependencies
- Bump `serde` from 1.0.160 to 1.0.166 (#613, #617, #627, #636)
- Bump `serde` from 1.0.160 to 1.0.183 (#613, #617, #627, #636, #639, #640, #645, [#648](https://github.com/vbrandl/hoc/pull/648), [#650](https://github.com/vbrandl/hoc/pull/650), [#652](https://github.com/vbrandl/hoc/pull/652), [#653](https://github.com/vbrandl/hoc/pull/653), [#654](https://github.com/vbrandl/hoc/pull/654), [#655](https://github.com/vbrandl/hoc/pull/655), [#657](https://github.com/vbrandl/hoc/pull/657))
- Bump `actions/cache` from 2 to 3 (#616)
- Bump `tokio` from 1.28.0 to 1.29.1 (#618, #625, #633, #634)
- Bump `tokio` from 1.28.0 to 1.32.0 (#618, #625, #633, #634, [#659](https://github.com/vbrandl/hoc/pull/659), [#660](https://github.com/vbrandl/hoc/pull/660), [#665](https://github.com/vbrandl/hoc/pull/665))
- Bump `reqwest` from 0.11.17 to 0.11.18 (#619)
- Bump `vergen` from 8.1.3 to 8.2.3 (#621, #622, #635)
- Bump `tracing-actix-web` from 0.7.4 to 0.7.5 (#623)
- Bump `vergen` from 8.1.3 to 8.2.4 (#621, #622, #635, #638)
- Bump `tracing-actix-web` from 0.7.4 to 0.7.6 (#623, [#656](https://github.com/vbrandl/hoc/pull/656))
- Bump `git2` from 0.17.1 to 0.17.2 (#624)
- Bump `tempfile` from 3.5.0 to 3.6.0 (#626)
- Bump `serde_json` from 1.0.96 to 1.0.99 (#630, #632)
- Bump `tempfile` from 3.5.0 to 3.8.0 (#626, [#646](https://github.com/vbrandl/hoc/pull/646), [#658](https://github.com/vbrandl/hoc/pull/658), [#667](https://github.com/vbrandl/hoc/pull/667))
- Bump `serde_json` from 1.0.96 to 1.0.105 (#630, #632, #637, #641, #644, [#649](https://github.com/vbrandl/hoc/pull/649), [#663](https://github.com/vbrandl/hoc/pull/663))
- Bump `openssl` from 0.10.50 to 0.10.55 (#631)
- Bump `tracing-bunyan-formatter` from 0.3.7 to 0.3.9 (#642, [#661](https://github.com/vbrandl/hoc/pull/661))
- Bump `anyhow` from 1.0.71 to 1.0.75 (#643, [#662](https://github.com/vbrandl/hoc/pull/662), [#664](https://github.com/vbrandl/hoc/pull/664))
- Bump `ructe` from 0.16.1 to 0.17.0 ([#647](https://github.com/vbrandl/hoc/pull/647))
## [0.35.0] 2023-05-04

139
Cargo.lock generated
View File

@@ -121,7 +121,7 @@ dependencies = [
"futures-util",
"mio",
"num_cpus",
"socket2",
"socket2 0.4.9",
"tokio",
"tracing",
]
@@ -200,7 +200,7 @@ dependencies = [
"serde_json",
"serde_urlencoded",
"smallvec",
"socket2",
"socket2 0.4.9",
"time",
"url",
]
@@ -281,9 +281,9 @@ dependencies = [
[[package]]
name = "anyhow"
version = "1.0.71"
version = "1.0.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8"
checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
[[package]]
name = "arc-swap"
@@ -299,7 +299,7 @@ checksum = "7b2d0f03b3640e3a630367e40c468cb7f309529c708ed1d88597047b0e7c6ef7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
@@ -648,15 +648,6 @@ dependencies = [
"libc",
]
[[package]]
name = "fastrand"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be"
dependencies = [
"instant",
]
[[package]]
name = "fastrand"
version = "2.0.0"
@@ -771,7 +762,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
@@ -1282,7 +1273,7 @@ dependencies = [
"gix-command",
"gix-config-value",
"parking_lot",
"rustix",
"rustix 0.37.22",
"thiserror",
]
@@ -1431,7 +1422,7 @@ version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7058c94f4164fcf5b8457d35f6d8f6e1007f9f7f938c9c7684a7e01d23c6ddde"
dependencies = [
"fastrand 2.0.0",
"fastrand",
]
[[package]]
@@ -1605,7 +1596,7 @@ dependencies = [
"httpdate",
"itoa",
"pin-project-lite",
"socket2",
"socket2 0.4.9",
"tokio",
"tower-service",
"tracing",
@@ -1655,15 +1646,6 @@ dependencies = [
"hashbrown 0.12.3",
]
[[package]]
name = "instant"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
"cfg-if",
]
[[package]]
name = "io-close"
version = "0.3.7"
@@ -1693,9 +1675,9 @@ checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6"
[[package]]
name = "itertools"
version = "0.10.5"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57"
dependencies = [
"either",
]
@@ -1814,6 +1796,12 @@ version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519"
[[package]]
name = "linux-raw-sys"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0"
[[package]]
name = "local-channel"
version = "0.1.3"
@@ -2021,7 +2009,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
@@ -2138,7 +2126,7 @@ dependencies = [
"pest_meta",
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
@@ -2169,14 +2157,14 @@ checksum = "ec2e072ecce94ec471b13398d5402c188e76ac03cf74dd1a975161b23a3f6d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
name = "pin-project-lite"
version = "0.2.10"
version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c40d25201921e5ff0c862a505c6557ea88568a4e3ace775ab55e93f2f4f9d57"
checksum = "12cc1b0bf1727a77a54b6654e7b5f1af8604923edc8b81885f8ec92f9e3f0a05"
[[package]]
name = "pin-utils"
@@ -2350,9 +2338,9 @@ dependencies = [
[[package]]
name = "ructe"
version = "0.16.1"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79c86c1631418815c5947a34be5872806586c65398754ec91cc2df35a8e26ba8"
checksum = "9b0a930679d54e46fa4e66be3d9a333026da04d2b659e42aab4dfd1586452815"
dependencies = [
"base64 0.21.2",
"bytecount",
@@ -2397,7 +2385,20 @@ dependencies = [
"errno",
"io-lifetimes",
"libc",
"linux-raw-sys",
"linux-raw-sys 0.3.8",
"windows-sys",
]
[[package]]
name = "rustix"
version = "0.38.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a962918ea88d644592894bc6dc55acc6c0956488adcebbfb6e273506b7fd6e5"
dependencies = [
"bitflags 2.3.3",
"errno",
"libc",
"linux-raw-sys 0.4.3",
"windows-sys",
]
@@ -2468,29 +2469,29 @@ checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed"
[[package]]
name = "serde"
version = "1.0.166"
version = "1.0.183"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d01b7404f9d441d3ad40e6a636a7782c377d2abdbe4fa2440e2edcc2f4f10db8"
checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.166"
version = "1.0.183"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5dd83d6dde2b6b2d466e14d9d1acce8816dedee94f735eac6395808b3483c6d6"
checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
name = "serde_json"
version = "1.0.99"
version = "1.0.105"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46266871c240a00b8f503b877622fe33430b3c7d963bdc0f2adc511e54a1eae3"
checksum = "693151e1ac27563d6dbcec9dee9fbd5da8539b20fa14ad3752b2e6d363ace360"
dependencies = [
"itoa",
"ryu",
@@ -2590,6 +2591,16 @@ dependencies = [
"winapi",
]
[[package]]
name = "socket2"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2538b18701741680e0322a2302176d3253a35388e2e62f172f64f4f16605f877"
dependencies = [
"libc",
"windows-sys",
]
[[package]]
name = "static_assertions"
version = "1.1.0"
@@ -2609,9 +2620,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.23"
version = "2.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59fb7d6d8281a51045d62b8eb3a7d1ce347b76f312af50cd3dc0af39c87c1737"
checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567"
dependencies = [
"proc-macro2",
"quote",
@@ -2620,15 +2631,14 @@ dependencies = [
[[package]]
name = "tempfile"
version = "3.6.0"
version = "3.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31c0432476357e58790aaa47a8efb0c5138f137343f3b5f23bd36a27e3b0a6d6"
checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef"
dependencies = [
"autocfg",
"cfg-if",
"fastrand 1.9.0",
"fastrand",
"redox_syscall 0.3.5",
"rustix",
"rustix 0.38.4",
"windows-sys",
]
@@ -2649,7 +2659,7 @@ checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
@@ -2708,11 +2718,10 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.29.1"
version = "1.32.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da"
checksum = "17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9"
dependencies = [
"autocfg",
"backtrace",
"bytes",
"libc",
@@ -2720,7 +2729,7 @@ dependencies = [
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"socket2",
"socket2 0.5.3",
"windows-sys",
]
@@ -2778,9 +2787,9 @@ dependencies = [
[[package]]
name = "tracing-actix-web"
version = "0.7.5"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce52ffaf2d544e317d3bef63f49a6a22022866505fa4840a4339b1756834a2a9"
checksum = "5c0b08ce08cbde6a96fc1e4ebb8132053e53ec7a5cd27eef93ede6b73ebbda06"
dependencies = [
"actix-web",
"pin-project",
@@ -2796,14 +2805,14 @@ checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
]
[[package]]
name = "tracing-bunyan-formatter"
version = "0.3.7"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25a348912d4e90923cb93343691d3be97e3409607363706c400fc935bb032fb0"
checksum = "b5c266b9ac83dedf0e0385ad78514949e6d89491269e7065bee51d2bb8ec7373"
dependencies = [
"ahash 0.8.3",
"gethostname",
@@ -2951,9 +2960,9 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vergen"
version = "8.2.3"
version = "8.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce38fc503fa57441ac2539c3e723b5adf76601eb4f1ad24025c6660d27f355b7"
checksum = "bbc5ad0d9d26b2c49a5ab7da76c3e79d3ee37e7821799f8223fcb8f2f391a2e7"
dependencies = [
"anyhow",
"gix",
@@ -3013,7 +3022,7 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
"wasm-bindgen-shared",
]
@@ -3047,7 +3056,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.23",
"syn 2.0.28",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]

View File

@@ -26,23 +26,23 @@ mime = "0.3"
number_prefix = "0.4.0"
openssl-probe = "0.1.5"
reqwest = "0.11.18"
serde = "1.0.166"
serde = "1.0.183"
serde_derive = "1.0.166"
serde_json = "1.0.99"
serde_json = "1.0.105"
tracing = "0.1.37"
tracing-actix-web = "0.7.5"
tracing-bunyan-formatter = "0.3.7"
tracing-actix-web = "0.7.6"
tracing-bunyan-formatter = "0.3.9"
tracing-futures = "0.2.5"
tracing-log = "0.1.3"
tracing-subscriber = { version = "0.3.17", features = ["registry", "env-filter"] }
[build-dependencies]
anyhow = "1.0.71"
ructe = { version = "0.16.1", features = ["mime03"] }
vergen = { version = "8.2.3", default-features = false, features = ["git", "gitoxide"] }
anyhow = "1.0.75"
ructe = { version = "0.17.0", features = ["mime03"] }
vergen = { version = "8.2.4", default-features = false, features = ["git", "gitoxide"] }
[dev-dependencies]
awc = "3.1.1"
ructe = "0.16.1"
tempfile = "3.6.0"
tokio = "1.29.1"
ructe = "0.17.0"
tempfile = "3.8.0"
tokio = "1.32.0"

View File

@@ -74,7 +74,7 @@ impl<'a> CacheState<'a> {
trace!("Calculating new cache");
match self {
CacheState::Old { mut cache, .. } => {
if let Some(mut cache) = cache.entries.get_mut(branch) {
if let Some(cache) = cache.entries.get_mut(branch) {
cache.head = head;
cache.count += count;
cache.commits += commits;

View File

@@ -41,17 +41,14 @@ impl ResponseError for Error {
fn error_response(&self) -> HttpResponse {
let mut buf = Vec::new();
match self {
Error::BranchNotFound => {
templates::p404_no_master_html(&mut buf, VERSION_INFO, 0).unwrap();
HttpResponse::NotFound().content_type("text/html").body(buf)
}
_ => {
templates::p500_html(&mut buf, VERSION_INFO, 0).unwrap();
HttpResponse::InternalServerError()
.content_type("text/html")
.body(buf)
}
if let Error::BranchNotFound = self {
templates::p404_no_master_html(&mut buf, VERSION_INFO, 0).unwrap();
HttpResponse::NotFound().content_type("text/html").body(buf)
} else {
templates::p500_html(&mut buf, VERSION_INFO, 0).unwrap();
HttpResponse::InternalServerError()
.content_type("text/html")
.body(buf)
}
}
}

View File

@@ -282,6 +282,7 @@ where
}
pull(&path)?;
let (hoc, head, commits) = hoc(&service_url, &state.repos(), &state.cache(), branch)?;
#[allow(clippy::cast_precision_loss)]
let hoc_pretty = match NumberPrefix::decimal(hoc as f64) {
NumberPrefix::Standalone(hoc) => hoc.to_string(),
NumberPrefix::Prefixed(prefix, hoc) => format!("{hoc:.1}{prefix}"),

View File

@@ -6,7 +6,7 @@ fn init() {
dotenvy::dotenv().ok();
openssl_probe::init_ssl_cert_env_vars();
telemetry::init_subscriber(telemetry::get_subscriber("hoc", "info"))
telemetry::init_subscriber(telemetry::get_subscriber("hoc", "info"));
}
#[actix_rt::main]

View File

@@ -15,6 +15,10 @@ pub fn get_subscriber(name: &str, env_filter: &str) -> impl Subscriber + Send +
.with(formatting_layer)
}
/// # Panics
///
/// This panics if the `LogTracer` cannot be initialized or `subscriber` cannot be set as global
/// default.
pub fn init_subscriber(subscriber: impl Subscriber + Send + Sync) {
LogTracer::init().expect("Failed to set logger");
set_global_default(subscriber).expect("Failed to set tracing subscriber");

View File

@@ -5,14 +5,14 @@ use tempfile::TempDir;
#[test]
fn no_repos() {
let repos = TempDir::new().unwrap();
assert_eq!(0, count_repositories(&repos).unwrap())
assert_eq!(0, count_repositories(&repos).unwrap());
}
#[test]
fn no_repos_for_provider() {
let repos = TempDir::new().unwrap();
let _provider = TempDir::new_in(&repos).unwrap();
assert_eq!(0, count_repositories(&repos).unwrap())
assert_eq!(0, count_repositories(&repos).unwrap());
}
#[test]
@@ -20,7 +20,7 @@ fn no_repos_for_owner() {
let repos = TempDir::new().unwrap();
let provider = TempDir::new_in(&repos).unwrap();
let _owner = TempDir::new_in(&provider).unwrap();
assert_eq!(0, count_repositories(&repos).unwrap())
assert_eq!(0, count_repositories(&repos).unwrap());
}
#[test]
@@ -29,7 +29,7 @@ fn one_repo_for_owner() {
let provider = TempDir::new_in(&repos).unwrap();
let owner = TempDir::new_in(&provider).unwrap();
let _repo = TempDir::new_in(&owner).unwrap();
assert_eq!(1, count_repositories(&repos).unwrap())
assert_eq!(1, count_repositories(&repos).unwrap());
}
#[test]
@@ -39,7 +39,7 @@ fn two_repos_for_owner() {
let owner = TempDir::new_in(&provider).unwrap();
let _repo1 = TempDir::new_in(&owner).unwrap();
let _repo2 = TempDir::new_in(&owner).unwrap();
assert_eq!(2, count_repositories(&repos).unwrap())
assert_eq!(2, count_repositories(&repos).unwrap());
}
#[test]
@@ -51,7 +51,7 @@ fn two_repos_for_two_providers() {
let provider2 = TempDir::new_in(&repos).unwrap();
let owner2 = TempDir::new_in(&provider2).unwrap();
let _repo2 = TempDir::new_in(&owner2).unwrap();
assert_eq!(2, count_repositories(&repos).unwrap())
assert_eq!(2, count_repositories(&repos).unwrap());
}
#[test]
@@ -62,5 +62,5 @@ fn two_subdirs_in_one_repo() {
let repo = TempDir::new_in(&owner).unwrap();
let _subdir1 = TempDir::new_in(&repo).unwrap();
let _subdir2 = TempDir::new_in(&repo).unwrap();
assert_eq!(1, count_repositories(&repos).unwrap())
assert_eq!(1, count_repositories(&repos).unwrap());
}

View File

@@ -25,14 +25,14 @@ pub async fn spawn_app() -> TestApp {
let listener = TcpListener::bind("127.0.0.1:0").expect("Failed to bind random port");
let port = listener.local_addr().unwrap().port();
let address = format!("http://127.0.0.1:{}", port);
let address = format!("http://127.0.0.1:{port}");
let _repo_dir = tempdir().expect("Cannot create repo_dir");
let _cache_dir = tempdir().expect("Cannot create cache_dir");
let repo_dir = tempdir().expect("Cannot create repo_dir");
let cache_dir = tempdir().expect("Cannot create cache_dir");
let mut settings = Settings::load().expect("Failed to read configuration.");
settings.repodir = _repo_dir.path().to_path_buf();
settings.cachedir = _cache_dir.path().to_path_buf();
settings.repodir = repo_dir.path().to_path_buf();
settings.cachedir = cache_dir.path().to_path_buf();
let server = hoc::run(listener, settings)
.await
@@ -44,7 +44,7 @@ pub async fn spawn_app() -> TestApp {
TestApp {
address,
_repo_dir,
_cache_dir,
_repo_dir: repo_dir,
_cache_dir: cache_dir,
}
}