Skip to content

[Bug]: Hidden elided lifetime in cloud_recording.rs #27

@gelanchez

Description

@gelanchez

Bug Description

The compiler has flagged an inconsistency in how lifetimes are represented in the start_streaming_upload method. While the input parameters use elided lifetimes, the return type StreamingUploader hides the fact that it is bound by a lifetime, which can lead to confusion regarding the object's validity.

Location: horus_core/src/scheduling/cloud_recording.rs

Steps to Reproduce

  1. Create new project.
  2. Compile and run.

Expected Behavior

No warnings.

Actual Behavior

warning: hiding a lifetime that's elided elsewhere is confusing
--> /home/jose/git/PUBLIC/horus/horus_core/src/scheduling/cloud_recording.rs:1635:35
|
1635 | pub fn start_streaming_upload(&self, session_id: &str) -> Result {
| ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^ the same lifetime is hidden 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
|
1635 | pub fn start_streaming_upload(&self, session_id: &str) -> Result<StreamingUploader<'_>> {

HORUS Version

0.1.6

Operating System

Ubuntu 24.04

Rust Version

rustc 1.92.0

Language

Rust

Minimal Code Example

Relevant Logs

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions