Skip to content

Commit

Permalink
fix(deps): update rust crate http to v1 (#209)
Browse files Browse the repository at this point in the history
* fix(deps): update rust crate http to v1

* fix: update for http 1.x

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Njuguna Mureithi <[email protected]>
  • Loading branch information
renovate[bot] and geofmureithi authored Nov 18, 2023
1 parent 072b5e4 commit 9e199fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/apalis-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ smol = { version = "1.3", optional = true }
smol-timeout = { version = "0.6", optional = true }
thiserror = "1.0.50"
log = "0.4"
http = { version = "0.2.11", optional = true }
http = { version = "1.0.0", optional = true }
strum = { version = "0.25", features = ["derive"] }
chrono = { version = "0.4", default-features = false, optional = true, features = [
"clock",
Expand Down
2 changes: 1 addition & 1 deletion packages/apalis-core/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl JobContext {
/// assert_eq!(ctx.insert(9i32), Some(5i32));
/// ```
#[cfg(feature = "extensions")]
pub fn insert<D: Any + Send + Sync>(&mut self, data: D) -> Option<D> {
pub fn insert<D: Any + Send + Sync + Clone>(&mut self, data: D) -> Option<D> {
self.data.0.insert(data)
}

Expand Down

0 comments on commit 9e199fd

Please sign in to comment.