Skip to content

Commit

Permalink
chore: update rust and fix lints (#588)
Browse files Browse the repository at this point in the history
* chore: update rust version

* fix: lint from updated rust version
  • Loading branch information
vindard authored Dec 15, 2024
1 parent 3b32770 commit 78a1279
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ pub fn extract_tracing<T>(request: &Request<T>) {

struct RequestContextExtractor<'a, T>(&'a Request<T>);

impl<'a, T> Extractor for RequestContextExtractor<'a, T> {
impl<T> Extractor for RequestContextExtractor<'_, T> {
fn get(&self, key: &str) -> Option<&str> {
self.0.metadata().get(key).and_then(|s| s.to_str().ok())
}
Expand Down

0 comments on commit 78a1279

Please sign in to comment.