Skip to content

Commit

Permalink
Add lifetime to the return reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Fahad Zubair committed Nov 27, 2024
1 parent aac9bec commit e91bc6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-json/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aws-smithy-json"
version = "0.60.7"
version = "0.61.1"
authors = ["AWS Rust SDK Team <[email protected]>", "John DiSanti <[email protected]>"]
description = "Token streaming JSON parser for smithy-rs."
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-json/src/deserialize/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl<'a> EscapedStr<'a> {
}

/// Returns the escaped string value
pub fn as_escaped_str(&self) -> &str {
pub fn as_escaped_str(&self) -> &'a str {
self.0
}

Expand Down

0 comments on commit e91bc6c

Please sign in to comment.