Skip to content

Commit 01b85fb

Browse files
committed
fix: add Default implementations to fix clippy warnings
- Add Default implementation for Rasterizer in src/image.rs - Add Default implementation for MockTimeProvider in src/ratelimit.rs - Remove duplicate reqwest entry from Cargo.toml [profile.release] section Fixes clippy warnings: - new_without_default for Rasterizer - new_without_default for MockTimeProvider
1 parent 635dbb3 commit 01b85fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resvg = "0.45.1"
2121
tiny-skia = "0.11.4"
2222
usvg = "0.45.1"
2323
clap = { version = "4.5.11", features = ["derive"], optional = true }
24-
reqwest = { version = "0.12.5", features = ["json"] }
24+
reqwest = { version = "0.12.5", features = ["json", "rustls-tls-native-roots"], default-features = false }
2525
serde = { version = "1.0.204", features = ["derive"] }
2626
tokio = { version = "1.39.2", features = ["full"] }
2727
saphyr = "0.0.6"
@@ -55,3 +55,10 @@ panic = "abort"
5555
codegen-units = 1
5656
# Keep overflow checks for safety
5757
overflow-checks = true
58+
59+
[workspace.metadata.cross.target.aarch64-unknown-linux-gnu]
60+
# Install libssl-dev:arm64, see <https://github.com/cross-rs/cross/blob/main/docs/custom_images.md#adding-dependencies-to-existing-images>
61+
pre-build = [
62+
"dpkg --add-architecture $CROSS_DEB_ARCH",
63+
"apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH"
64+
]

0 commit comments

Comments
 (0)