We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Utf16Writer
1 parent 162239d commit d4ac870Copy full SHA for d4ac870
ctru-rs/src/applets/error.rs
@@ -74,7 +74,7 @@ impl PopUp {
74
/// # }
75
/// ```
76
#[doc(alias = "errorText")]
77
- pub fn writer<'a>(&'a mut self) -> Utf16Writer<'a> {
+ pub fn writer(&mut self) -> Utf16Writer<'_> {
78
Utf16Writer::new(&mut self.state.Text)
79
}
80
ctru-rs/src/lib.rs
@@ -94,10 +94,10 @@ pub struct Utf16Writer<'a> {
94
index: usize,
95
96
97
-impl<'a> Utf16Writer<'a> {
+impl Utf16Writer<'_> {
98
/// Creates a new [Utf16Writer] that writes its output into the provided buffer.
99
- pub fn new(buf: &'a mut [u16]) -> Self {
100
- Self { buf, index: 0 }
+ pub fn new(buf: &mut [u16]) -> Utf16Writer<'_> {
+ Utf16Writer { buf, index: 0 }
101
102
103
0 commit comments