remove unused dep #376
Annotations
7 errors and 2 warnings
fields `read_only`, `timestamp`, and `access_timestamp` are never read:
hook/src/hooks/pak.rs#L295
error: fields `read_only`, `timestamp`, and `access_timestamp` are never read
--> hook/src/hooks/pak.rs:295:9
|
293 | pub struct FileInfo {
| -------- fields in this struct
294 | pub file_exists: bool,
295 | pub read_only: bool,
| ^^^^^^^^^
296 | pub size: i64,
297 | pub timestamp: u64,
| ^^^^^^^^^
298 | pub access_timestamp: u64,
| ^^^^^^^^^^^^^^^^
|
= note: `FileInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `path` and `timestamp` are never read:
hook/src/hooks/pak.rs#L208
error: fields `path` and `timestamp` are never read
--> hook/src/hooks/pak.rs:208:9
|
207 | pub struct FileEntry {
| --------- fields in this struct
208 | pub path: String,
| ^^^^
209 | pub timestamp: u64,
| ^^^^^^^^^
|
= note: `FileEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
multiple variants are never constructed:
hook/src/hooks/pak.rs#L109
error: multiple variants are never constructed
--> hook/src/hooks/pak.rs:109:5
|
108 | enum Message {
| ------- variants in this enum
109 | SyncFile,
| ^^^^^^^^
110 | DeleteFile,
| ^^^^^^^^^^
111 | MoveFile,
| ^^^^^^^^
112 | SetReadOnly,
| ^^^^^^^^^^^
113 | OpenRead(MessageOpenRead),
114 | OpenWrite,
| ^^^^^^^^^
115 | OpenAppend,
| ^^^^^^^^^^
116 | CreateDirectory,
| ^^^^^^^^^^^^^^^
117 | DeleteDirectory,
| ^^^^^^^^^^^^^^^
118 | IterateDirectory,
| ^^^^^^^^^^^^^^^^
119 | IterateDirectoryRecursively(MessageIterateDirectoryRecursively),
120 | DeleteDirectoryRecursively,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
121 | CopyFile,
| ^^^^^^^^
...
124 | Write,
| ^^^^^
125 | Close,
| ^^^^^
126 | Seek,
| ^^^^
127 | SetTimeStamp,
| ^^^^^^^^^^^^
128 | ToAbsolutePathForRead,
| ^^^^^^^^^^^^^^^^^^^^^
129 | ToAbsolutePathForWrite,
| ^^^^^^^^^^^^^^^^^^^^^^
130 | ReportLocalFiles,
| ^^^^^^^^^^^^^^^^
131 | GetFileList(Box<MessageGetFileList>),
132 | Heartbeat,
| ^^^^^^^^^
133 | RecompileShaders,
| ^^^^^^^^^^^^^^^^
|
= note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
|
unused variable: `name`:
hook/src/hooks/pak.rs#L801
error: unused variable: `name`
--> hook/src/hooks/pak.rs:801:9
|
801 | let name = widestring::U16CStr::from_ptr_str(file_name)
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
unused variable: `timestamp`:
hook/src/hooks/pak.rs#L411
error: unused variable: `timestamp`
--> hook/src/hooks/pak.rs:411:13
|
411 | let timestamp = reply.read_u64::<LE>()?;
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
|
unused import: `std::path::Path`:
hook/src/hooks/pak.rs#L6
error: unused import: `std::path::Path`
--> hook/src/hooks/pak.rs:6:5
|
6 | use std::path::Path;
| ^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|
check
Clippy had exited with the 101 exit code
|
check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|