Skip to content

Commit 5797050

Browse files
committed
pldm: Avoid unneeded lifetime
Signed-off-by: Matt Johnston <[email protected]>
1 parent 5a1b7a9 commit 5797050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pldm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl PldmRequest<'static> {
219219
/// Create a PLDM request from message data.
220220
///
221221
/// May fail if the message data is not parsable as a PLDM message.
222-
pub fn from_buf<'f>(data: &'f [u8]) -> Result<Self> {
222+
pub fn from_buf(data: &[u8]) -> Result<Self> {
223223
PldmRequest::from_buf_borrowed(data).map(|p| p.make_owned())
224224
}
225225
}

0 commit comments

Comments
 (0)