Skip to content

Commit

Permalink
Lifetime fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholakov committed Feb 3, 2025
1 parent d71dcde commit fd19204
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/timer/src/service/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ async fn earlier_timers_replace_older_ones() {
}

async fn yield_to_timer_service<
'a,
Timer: crate::Timer + Debug + 'static,
Clock: crate::Clock,
TimerReader: crate::TimerReader<Timer> + Send + 'static,
Expand Down
2 changes: 1 addition & 1 deletion crates/types/src/schema/invocation_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl InputContentType {
fn extract_content_type_parts<'a>(
&'a self,
input_content_type: &'a str,
) -> Result<(&str, &str), InputValidationError> {
) -> Result<(&'a str, &'a str), InputValidationError> {
let ct_without_args = input_content_type
.split_once(';')
.map(|(ct, _)| ct)
Expand Down
2 changes: 1 addition & 1 deletion tools/mock-service-endpoint/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ fn error(err: FrameError) -> ProtocolMessage {
}

struct LossyDisplay<'a>(Option<&'a [u8]>);
impl<'a> Display for LossyDisplay<'a> {
impl Display for LossyDisplay<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self.0 {
Some(bytes) => write!(f, "{}", String::from_utf8_lossy(bytes)),
Expand Down

0 comments on commit fd19204

Please sign in to comment.