mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-26 09:44:40 +10:00
fix: remove lifetimes
This commit is contained in:
Generated
+1
-1
@@ -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",
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user