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
- Create new project.
- 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
Bug Description
The compiler has flagged an inconsistency in how lifetimes are represented in the
start_streaming_uploadmethod. While the input parameters use elided lifetimes, the return typeStreamingUploaderhides 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.rsSteps to Reproduce
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 defaulthelp: 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