Skip to content

Commit

Permalink
Fixes clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Dec 21, 2024
1 parent 317728a commit 4c5f488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,12 @@ Keep in mind that you need to put everything your test needed in the same functi
### 0.1 to 0.2

- `Path` is changed from sized type to unsized type. Any code that cast `Path` to a raw pointer need
to update otherwise you will got a fat pointer, which is Rust specific. You can get a pointer to
to update otherwise you will get a fat pointer, which is Rust specific. You can get a pointer to
`EFI_DEVICE_PATH_PROTOCOL` via `Path::as_bytes()`.
- `FileInfo` is changed from sized type to unsized type in the same way as `Path`.
- `File::info()` now return `Box<FileInfo>` instead of `Owned<FileInfo>` when success.
- The second parameter of `Owned::new()` is changed to `Dtor`.

## Example Projects

- [TCG Boot](https://github.com/ultimaweapon/tcg-boot)

## License

MIT
2 changes: 1 addition & 1 deletion src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub enum PathNode<'a> {
MediaFilePath(&'a EfiStr),
}

impl<'a> Display for PathNode<'a> {
impl Display for PathNode<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
match self {
PathNode::MediaFilePath(p) => p.fmt(f),
Expand Down

0 comments on commit 4c5f488

Please sign in to comment.