fix: remove lifetimes
This commit is contained in:
Generated
+1
-1
@@ -175,7 +175,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "droplet-rs"
|
||||
version = "0.9.1"
|
||||
version = "0.9.2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user