Skip to content

Conversation

@panhania
Copy link
Member

Without this we are seeing warnings like:

warning: hiding a lifetime that's elided elsewhere is confusing
   --> crates/tsk/src/lib.rs:178:21                                   
    |                                                                                                                                        
178 |     pub fn open_dir(&self, path: &Path) -> Result<Directory> {                                                                         
    |                     ^^^^^                         --------- the same lifetime is hidden here
    |                     |                                           
    |                     the lifetime is elided here                 
    |                                                                 
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths                                                                                                                
    |                                                                 
178 |     pub fn open_dir(&self, path: &Path) -> Result<Directory<'_>> {
    |                                                            ++++

@panhania panhania requested a review from Spferical November 21, 2025 16:53
@panhania panhania merged commit 6ba56d3 into google:master Nov 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants