fix: FromStd::inner_mut deprecation note
What changed, and why it matters
This commit fixes a typo in a deprecation warning message. The warning previously told developers to use a non-existent function name (`get_ref()`) and now correctly points them to the actual function (`get_mut()`). It does not change any program behavior or fix a security issue.
No security action required. Treat as a normal documentation/annotation fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change is a one-line edit to the deprecation note on FromStd::inner_mut() in io/src/bridge.rs. The note is purely advisory for developers and has no runtime effect. The corrected note now accurately references get_mut(), matching the existing inner() method’s deprecation note which references get_ref().
Changed components
io/src/bridge.rsInspect captured patch +1 / −1
diff --git a/io/src/bridge.rs b/io/src/bridge.rs
index 52a47694..4db58e82 100644
--- a/io/src/bridge.rs
+++ b/io/src/bridge.rs
@@ -40,7 +40,7 @@ impl<T> FromStd<T> {
/// Returns a mutable reference to the wrapped value.
#[inline]
- #[deprecated(since = "TBD", note = "use `get_ref()` instead")]
+ #[deprecated(since = "TBD", note = "use `get_mut()` instead")]
pub fn inner_mut(&mut self) -> &mut T { &mut self.0 }
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.