fix: remove lifetimes

This commit is contained in:
DecDuck
2025-12-01 14:35:16 +11:00
parent acdf2ba0f7
commit 4dfb02b0e7
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ dependencies = [
[[package]] [[package]]
name = "droplet-rs" name = "droplet-rs"
version = "0.9.1" version = "0.9.2"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
+1 -1
View File
@@ -2,7 +2,7 @@
edition = "2021" edition = "2021"
authors = ["Drop-OSS"] authors = ["Drop-OSS"]
name = "droplet-rs" name = "droplet-rs"
version = "0.9.1" version = "0.9.2"
license = "AGPL-3.0-only" license = "AGPL-3.0-only"
description = "Droplet is a `napi.rs` Rust/Node.js package full of high-performance and low-level utils for Drop" description = "Droplet is a `napi.rs` Rust/Node.js package full of high-performance and low-level utils for Drop"
+2 -2
View File
@@ -69,7 +69,7 @@ impl VersionBackend for PathVersionBackend {
file: &VersionFile, file: &VersionFile,
start: u64, start: u64,
end: u64, end: u64,
) -> anyhow::Result<Box<dyn MinimumFileObject + '_>> { ) -> anyhow::Result<Box<dyn MinimumFileObject>> {
let mut file = File::open(self.base_dir.join(file.relative_filename.clone())).await?; let mut file = File::open(self.base_dir.join(file.relative_filename.clone())).await?;
if start != 0 { if start != 0 {
@@ -197,7 +197,7 @@ impl VersionBackend for ZipVersionBackend {
file: &VersionFile, file: &VersionFile,
start: u64, start: u64,
end: u64, end: u64,
) -> anyhow::Result<Box<dyn MinimumFileObject + '_>> { ) -> anyhow::Result<Box<dyn MinimumFileObject>> {
let mut read_command = Command::new("7z"); let mut read_command = Command::new("7z");
read_command.args(vec!["e", "-so", &self.path, &file.relative_filename]); read_command.args(vec!["e", "-so", &self.path, &file.relative_filename]);
let mut output = read_command let mut output = read_command
+1 -1
View File
@@ -25,7 +25,7 @@ pub trait VersionBackend: DynClone {
file: &VersionFile, file: &VersionFile,
start: u64, start: u64,
end: u64, end: u64,
) -> anyhow::Result<Box<dyn MinimumFileObject + '_>>; ) -> anyhow::Result<Box<dyn MinimumFileObject>>;
} }
dyn_clone::clone_trait_object!(VersionBackend); dyn_clone::clone_trait_object!(VersionBackend);