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]]
name = "droplet-rs"
version = "0.9.1"
version = "0.9.2"
dependencies = [
"anyhow",
"async-trait",
+1 -1
View File
@@ -2,7 +2,7 @@
edition = "2021"
authors = ["Drop-OSS"]
name = "droplet-rs"
version = "0.9.1"
version = "0.9.2"
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"
+2 -2
View File
@@ -69,7 +69,7 @@ impl VersionBackend for PathVersionBackend {
file: &VersionFile,
start: 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?;
if start != 0 {
@@ -197,7 +197,7 @@ impl VersionBackend for ZipVersionBackend {
file: &VersionFile,
start: u64,
end: u64,
) -> anyhow::Result<Box<dyn MinimumFileObject + '_>> {
) -> anyhow::Result<Box<dyn MinimumFileObject>> {
let mut read_command = Command::new("7z");
read_command.args(vec!["e", "-so", &self.path, &file.relative_filename]);
let mut output = read_command
+1 -1
View File
@@ -25,7 +25,7 @@ pub trait VersionBackend: DynClone {
file: &VersionFile,
start: u64,
end: u64,
) -> anyhow::Result<Box<dyn MinimumFileObject + '_>>;
) -> anyhow::Result<Box<dyn MinimumFileObject>>;
}
dyn_clone::clone_trait_object!(VersionBackend);