Skip to content

Commit 92e571e

Browse files
committed
Make Ruby encoding lifetime explicit
Fixes the mismatched_lifetime_syntaxes lint error reported by Rust 1.98. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
1 parent 21fb895 commit 92e571e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ruby/extractor/src/extractor.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ fn get_overlay_changed_files() -> Option<HashSet<PathBuf>> {
371371
)
372372
}
373373

374-
fn scan_coding_comment(content: &[u8]) -> std::option::Option<Cow<str>> {
374+
fn scan_coding_comment(content: &[u8]) -> std::option::Option<Cow<'_, str>> {
375375
let mut index = 0;
376376
// skip UTF-8 BOM marker if there is one
377377
if content.len() >= 3 && content[0] == 0xef && content[1] == 0xbb && content[2] == 0xbf {

0 commit comments

Comments
 (0)