rust: error: Markdown style nit
PATCH 1/1 rust: error: Markdown style nit
This patch fixes a trivial markdown style nit in the SAFETY comment.
Signed-off-by Manmohan Shukla <[email protected]>
--- rust/kernel/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/error.rs +1 -1
@@ -133,7 +133,7 @@ pub fn to_errno(self) -> core::ffi::c_int {/// Returns the error encoded as a pointer. #[allow(dead_code)] pub (crate )fn to_ptr <T >(self) -> *mut T { -// SAFETY: self.0 is a valid error due to its invariant. +// SAFETY: `self.0` is a valid error due to its invariant. unsafe { bindings::ERR_PTR (self.0 .into ())as *mut _ } }
Signature · 1 line
2.34.1
Quoted 3 lines
This patch fixes a trivial markdown style nit in the
SAFETYcomment.Signed-off-by Manmohan Shukla <[email protected]>
Reviewed-by Vincenzo Palazzo <[email protected]>
Quoted 22 lines
This patch fixes a trivial markdown style nit in the
SAFETYcomment.Signed-off-by Manmohan Shukla <[email protected]>--- rust/kernel/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)rust/kernel/error.rs +1
-1@@ -133,7 +133,7 @@ pub fn to_errno(self) -> core::ffi::c_int {/// Returns the error encoded as a pointer. #[allow(dead_code)] pub (crate )fn to_ptr <T >(self) -> *mut T { -// SAFETY: self.0 is a valid error due to its invariant. +// SAFETY: `self.0` is a valid error due to its invariant. unsafe { bindings::ERR_PTR (self.0 .into ())as *mut _ } }Signature · 1 line
2.34.1
Reviewed-by Alice Ryhl <[email protected]>
Quoted 21 lines · Manmohan Shukla
This patch fixes a trivial markdown style nit in the
SAFETYcomment.Signed-off-by Manmohan Shukla <[email protected]>--- rust/kernel/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)rust/kernel/error.rs +1
-2@@ -133,7 +133,7 @@ pub fn to_errno(self) -> core::ffi::c_int {/// Returns the error encoded as a pointer. #[allow(dead_code)] pub (crate )fn to_ptr <T >(self) -> *mut T { -// SAFETY: self.0 is a valid error due to its invariant. +// SAFETY: `self.0` is a valid error due to its invariant. unsafe { bindings::ERR_PTR (self.0 .into ())as *mut _ } } --
Quoted 1 line
2.34.1
Reviewed-by Benno Lossin <[email protected]>
Quoted 4 lines · Manmohan Shukla
This patch fixes a trivial markdown style nit in the
SAFETYcomment.Signed-off-by Manmohan Shukla <[email protected]>---
Reviewed-by Finn Behrens <[email protected]>
Quoted 4 lines · Manmohan Shukla
This patch fixes a trivial markdown style nit in the
SAFETYcomment.Signed-off-by Manmohan Shukla <[email protected]>---
Reviewed-by Andreas Hindborg <[email protected]>
Quoted 22 lines · Manmohan Shukla
This patch fixes a trivial markdown style nit in the
SAFETYcomment.Signed-off-by Manmohan Shukla <[email protected]>--- rust/kernel/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)rust/kernel/error.rs +1
-1@@ -133,7 +133,7 @@ pub fn to_errno(self) -> core::ffi::c_int {/// Returns the error encoded as a pointer. #[allow(dead_code)] pub (crate )fn to_ptr <T >(self) -> *mut T { -// SAFETY: self.0 is a valid error due to its invariant. +// SAFETY: `self.0` is a valid error due to its invariant. unsafe { bindings::ERR_PTR (self.0 .into ())as *mut _ } }Signature · 1 line
2.34.1
Reviewed-by Jianguo Bao <[email protected]>
Miguel Ojeda
AppliedQuoted 4 lines · Manmohan Shukla
This patch fixes a trivial markdown style nit in the
SAFETYcomment.Signed-off-by Manmohan Shukla <[email protected]>
Applied to rust-fixes, thanks everyone!
Cheers,
Miguel