Checking raps v0.2.0 (/home/runner/work/raps/raps)
error: value assigned to `auth_code` is never read
--> src/api/auth.rs:297:45
|
297 | let mut auth_code: Option<String> = None;
| ^^^^
|
= help: maybe it is overwritten before being read?
= note: `-D unused-assignments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_assignments)]`
error: variable does not need to be mutable
--> src/commands/generate.rs:244:9
|
244 | let mut rng = rand::thread_rng();
| ----^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_mut)]`
error: unused variable: `rng`
--> src/commands/generate.rs:244:9
|
244 | let mut rng = rand::thread_rng();
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
error: unused variable: `elements_per_storey`
--> src/commands/generate.rs:479:9
|
479 | let elements_per_storey = settings.elements / storey_count;
| ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_elements_per_storey`
error: fields `given_name`, `family_name`, and `picture` are never read
--> src/api/auth.rs:25:9
|
19 | pub struct UserInfo {
| -------- fields in this struct
...
25 | pub given_name: Option<String>,
| ^^^^^^^^^^
26 | /// Last name
27 | pub family_name: Option<String>,
| ^^^^^^^^^^^
...
37 | pub picture: Option<String>,
| ^^^^^^^
|
= note: `UserInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
error: field `folder_type` is never read
--> src/api/data_management.rs:54:9
|
52 | pub struct Folder {
| ------ field in this struct
53 | #[serde(rename = "type")]
54 | pub folder_type: String,
| ^^^^^^^^^^^
|
= note: `Folder` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: fields `create_time` and `last_modified_time` are never read
--> src/api/data_management.rs:65:9
|
60 | pub struct FolderAttributes {
| ---------------- fields in this struct
...
65 | pub create_time: Option<String>,
| ^^^^^^^^^^^
66 | #[serde(rename = "lastModifiedTime")]
67 | pub last_modified_time: Option<String>,
| ^^^^^^^^^^^^^^^^^^
|
= note: `FolderAttributes` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: fields `version_type` and `id` are never read
--> src/api/data_management.rs:102:9
|
100 | pub struct Version {
| ------- fields in this struct
101 | #[serde(rename = "type")]
102 | pub version_type: String,
| ^^^^^^^^^^^^
103 | pub id: String,
| ^^
|
= note: `Version` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: enum `FolderContent` is never used
--> src/api/data_management.rs:123:10
|
123 | pub enum FolderContent {
| ^^^^^^^^^^^^^
error: fields `included` and `links` are never read
--> src/api/data_management.rs:133:9
|
130 | pub struct JsonApiResponse<T> {
| --------------- fields in this struct
...
133 | pub included: Vec<serde_json::Value>,
| ^^^^^^^^
134 | pub links: Option<JsonApiLinks>,
| ^^^^^
|
= note: `JsonApiResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `self_link` and `next` are never read
--> src/api/data_management.rs:140:9
|
138 | pub struct JsonApiLinks {
| ------------ fields in this struct
139 | #[serde(rename = "self")]
140 | pub self_link: Option<JsonApiLink>,
| ^^^^^^^^^
141 | pub next: Option<JsonApiLink>,
| ^^^^
|
= note: `JsonApiLinks` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `0` is never read
--> src/api/data_management.rs:147:12
|
147 | Simple(String),
| ------ ^^^^^^
| |
| field in this variant
|
= note: `JsonApiLink` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
147 - Simple(String),
147 + Simple(()),
|
error: field `href` is never read
--> src/api/data_management.rs:148:15
|
148 | Complex { href: String },
| ------- ^^^^
| |
| field in this variant
|
= note: `JsonApiLink` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `manifest_type` and `urn` are never read
--> src/api/derivative.rs:163:9
|
161 | pub struct Manifest {
| -------- fields in this struct
162 | #[serde(rename = "type")]
163 | pub manifest_type: String,
| ^^^^^^^^^^^^^
...
168 | pub urn: String,
| ^^^
|
= note: `Manifest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `has_thumbnail` is never read
--> src/api/derivative.rs:178:9
|
176 | pub struct Derivative {
| ---------- field in this struct
177 | pub name: Option<String>,
178 | pub has_thumbnail: Option<String>,
| ^^^^^^^^^^^^^
|
= note: `Derivative` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `child_type`, `status`, and `children` are never read
--> src/api/derivative.rs:191:9
|
188 | pub struct DerivativeChild {
| --------------- fields in this struct
...
191 | pub child_type: String,
| ^^^^^^^^^^
...
194 | pub status: Option<String>,
| ^^^^^^
195 | #[serde(default)]
196 | pub children: Vec<DerivativeChild>,
| ^^^^^^^^
|
= note: `DerivativeChild` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: method `delete_manifest` is never used
--> src/api/derivative.rs:304:18
|
206 | impl DerivativeClient {
| --------------------- method in this implementation
...
304 | pub async fn delete_manifest(&self, urn: &str) -> Result<()> {
| ^^^^^^^^^^^^^^^
error: fields `description` and `product_version` are never read
--> src/api/design_automation.rs:16:9
|
14 | pub struct Engine {
| ------ fields in this struct
15 | pub id: String,
16 | pub description: Option<String>,
| ^^^^^^^^^^^
17 | pub product_version: Option<String>,
| ^^^^^^^^^^^^^^^
|
= note: `Engine` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: struct `AppBundle` is never constructed
--> src/api/design_automation.rs:23:12
|
23 | pub struct AppBundle {
| ^^^^^^^^^
error: fields `description` and `package` are never read
--> src/api/design_automation.rs:36:9
|
33 | pub struct AppBundleDetails {
| ---------------- fields in this struct
...
36 | pub description: Option<String>,
| ^^^^^^^^^^^
37 | pub version: i32,
38 | pub package: Option<String>,
| ^^^^^^^
|
= note: `AppBundleDetails` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: field `form_data` is never read
--> src/api/design_automation.rs:46:9
|
44 | pub struct UploadParameters {
| ---------------- field in this struct
45 | pub endpoint_url: String,
46 | pub form_data: std::collections::HashMap<String, String>,
| ^^^^^^^^^
|
= note: `UploadParameters` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: struct `Activity` is never constructed
--> src/api/design_automation.rs:52:12
|
52 | pub struct Activity {
| ^^^^^^^^
error: fields `id` and `stats` are never read
--> src/api/design_automation.rs:65:9
|
64 | pub struct WorkItem {
| -------- fields in this struct
65 | pub id: String,
| ^^
...
69 | pub stats: Option<WorkItemStats>,
| ^^^^^
|
= note: `WorkItem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: multiple fields are never read
--> src/api/design_automation.rs:75:9
|
74 | pub struct WorkItemStats {
| ------------- fields in this struct
75 | pub time_queued: Option<String>,
| ^^^^^^^^^^^
76 | pub time_download_started: Option<String>,
| ^^^^^^^^^^^^^^^^^^^^^
77 | pub time_instruction_started: Option<String>,
| ^^^^^^^^^^^^^^^^^^^^^^^^
78 | pub time_instruction_ended: Option<String>,
| ^^^^^^^^^^^^^^^^^^^^^^
79 | pub time_upload_ended: Option<String>,
| ^^^^^^^^^^^^^^^^^
80 | pub time_finished: Option<String>,
| ^^^^^^^^^^^^^
81 | pub bytes_downloaded: Option<i64>,
| ^^^^^^^^^^^^^^^^
82 | pub bytes_uploaded: Option<i64>,
| ^^^^^^^^^^^^^^
|
= note: `WorkItemStats` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: struct `CreateActivityRequest` is never constructed
--> src/api/design_automation.rs:97:12
|
97 | pub struct CreateActivityRequest {
| ^^^^^^^^^^^^^^^^^^^^^
error: struct `ActivityParameter` is never constructed
--> src/api/design_automation.rs:108:12
|
108 | pub struct ActivityParameter {
| ^^^^^^^^^^^^^^^^^
error: struct `CreateWorkItemRequest` is never constructed
--> src/api/design_automation.rs:120:12
|
120 | pub struct CreateWorkItemRequest {
| ^^^^^^^^^^^^^^^^^^^^^
error: struct `WorkItemArgument` is never constructed
--> src/api/design_automation.rs:127:12
|
127 | pub struct WorkItemArgument {
| ^^^^^^^^^^^^^^^^
error: field `pagination_token` is never read
--> src/api/design_automation.rs:140:9
|
138 | pub struct PaginatedResponse<T> {
| ----------------- field in this struct
139 | pub data: Vec<T>,
140 | pub pagination_token: Option<String>,
| ^^^^^^^^^^^^^^^^
|
= note: `PaginatedResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: methods `nickname`, `create_activity`, and `create_workitem` are never used
--> src/api/design_automation.rs:161:8
|
150 | impl DesignAutomationClient {
| --------------------------- methods in this implementation
...
161 | fn nickname(&self) -> &str {
| ^^^^^^^^
...
309 | pub async fn create_activity(&self, request: CreateActivityRequest) -> Result<Activity> {
| ^^^^^^^^^^^^^^^
...
360 | pub async fn create_workitem(
| ^^^^^^^^^^^^^^^
error: multiple fields are never read
--> src/api/issues.rs:18:9
|
15 | pub struct Issue {
| ----- fields in this struct
...
18 | pub container_id: Option<String>,
| ^^^^^^^^^^^^
...
21 | pub description: Option<String>,
| ^^^^^^^^^^^
22 | pub status: String,
23 | pub issue_type_id: Option<String>,
| ^^^^^^^^^^^^^
24 | pub issue_subtype_id: Option<String>,
| ^^^^^^^^^^^^^^^^
25 | pub assigned_to: Option<String>,
26 | pub assigned_to_type: Option<String>,
| ^^^^^^^^^^^^^^^^
27 | pub due_date: Option<String>,
| ^^^^^^^^
28 | pub created_at: Option<String>,
| ^^^^^^^^^^
29 | pub updated_at: Option<String>,
| ^^^^^^^^^^
30 | pub created_by: Option<String>,
| ^^^^^^^^^^
31 | pub closed_at: Option<String>,
| ^^^^^^^^^
32 | pub closed_by: Option<String>,
| ^^^^^^^^^
|
= note: `Issue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: field `id` is never read
--> src/api/issues.rs:48:9
|
47 | pub struct IssueSubType {
| ------------ field in this struct
48 | pub id: String,
| ^^
|
= note: `IssueSubType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: field `pagination` is never read
--> src/api/issues.rs:57:9
|
55 | pub struct IssuesResponse {
| -------------- field in this struct
56 | pub results: Vec<Issue>,
57 | pub pagination: Option<Pagination>,
| ^^^^^^^^^^
|
= note: `IssuesResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `limit`, `offset`, and `total_results` are never read
--> src/api/issues.rs:63:9
|
62 | pub struct Pagination {
| ---------- fields in this struct
63 | pub limit: i32,
| ^^^^^
64 | pub offset: i32,
| ^^^^^^
65 | pub total_results: i32,
| ^^^^^^^^^^^^^
|
= note: `Pagination` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `upload_expiration` is never read
--> src/api/oss.rs:146:9
|
140 | pub struct SignedS3UploadResponse {
| ---------------------- field in this struct
...
146 | pub upload_expiration: Option<String>,
| ^^^^^^^^^^^^^^^^^
|
= note: `SignedS3UploadResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `bucket_key`, `object_key`, `location`, and `content_type` are never read
--> src/api/oss.rs:153:9
|
152 | pub struct ObjectInfo {
| ---------- fields in this struct
153 | pub bucket_key: String,
| ^^^^^^^^^^
154 | pub object_key: String,
| ^^^^^^^^^^
...
160 | pub location: Option<String>,
| ^^^^^^^^
...
163 | pub content_type: Option<String>,
| ^^^^^^^^^^^^
|
= note: `ObjectInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `bucket_key` and `object_id` are never read
--> src/api/oss.rs:177:9
|
176 | pub struct ObjectItem {
| ---------- fields in this struct
177 | pub bucket_key: String,
| ^^^^^^^^^^
178 | pub object_key: String,
179 | pub object_id: String,
| ^^^^^^^^^
|
= note: `ObjectItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `name`, `scene_type`, `convert_format`, `status`, `progress`, and `progress_msg` are never read
--> src/api/reality_capture.rs:20:9
|
17 | pub struct Photoscene {
| ---------- fields in this struct
...
20 | pub name: Option<String>,
| ^^^^
21 | #[serde(rename = "scenetype")]
22 | pub scene_type: Option<String>,
| ^^^^^^^^^^
23 | #[serde(rename = "convertformat")]
24 | pub convert_format: Option<String>,
| ^^^^^^^^^^^^^^
25 | pub status: Option<String>,
| ^^^^^^
26 | pub progress: Option<String>,
| ^^^^^^^^
27 | #[serde(rename = "progressmsg")]
28 | pub progress_msg: Option<String>,
| ^^^^^^^^^^^^
|
= note: `Photoscene` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: fields `usage` and `resource` are never read
--> src/api/reality_capture.rs:43:9
|
41 | pub struct UploadResponse {
| -------------- fields in this struct
42 | pub files: Option<UploadFiles>,
43 | pub usage: Option<String>,
| ^^^^^
44 | pub resource: Option<String>,
| ^^^^^^^^
|
= note: `UploadResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: fields `filename`, `fileid`, `filesize`, and `msg` are never read
--> src/api/reality_capture.rs:55:9
|
54 | pub struct UploadedFile {
| ------------ fields in this struct
55 | pub filename: String,
| ^^^^^^^^
56 | pub fileid: String,
| ^^^^^^
57 | pub filesize: Option<String>,
| ^^^^^^^^
58 | pub msg: Option<String>,
| ^^^
|
= note: `UploadedFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `photoscene_id` is never read
--> src/api/reality_capture.rs:72:9
|
70 | pub struct PhotosceneProgress {
| ------------------ field in this struct
71 | #[serde(rename = "photosceneid")]
72 | pub photoscene_id: String,
| ^^^^^^^^^^^^^
|
= note: `PhotosceneProgress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `progress_msg` is never read
--> src/api/reality_capture.rs:93:9
|
88 | pub struct PhotosceneResult {
| ---------------- field in this struct
...
93 | pub progress_msg: Option<String>,
| ^^^^^^^^^^^^
|
= note: `PhotosceneResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: multiple fields are never read
--> src/api/webhooks.rs:35:9
|
33 | pub struct Webhook {
| ------- fields in this struct
34 | pub hook_id: String,
35 | pub tenant: Option<String>,
| ^^^^^^
36 | pub callback_url: String,
37 | pub created_by: Option<String>,
| ^^^^^^^^^^
38 | pub event: String,
39 | pub created_date: Option<String>,
| ^^^^^^^^^^^^
40 | pub last_updated_date: Option<String>,
| ^^^^^^^^^^^^^^^^^
41 | pub system: String,
| ^^^^^^
42 | pub creator_type: Option<String>,
| ^^^^^^^^^^^^
43 | pub status: String,
44 | pub scope: Option<WebhookScope>,
| ^^^^^
45 | pub hook_attribute: Option<serde_json::Value>,
| ^^^^^^^^^^^^^^
46 | pub urn: Option<String>,
| ^^^
47 | pub auto_reactivate_hook: Option<bool>,
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `Webhook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: fields `folder` and `workflow` are never read
--> src/api/webhooks.rs:53:9
|
52 | pub struct WebhookScope {
| ------------ fields in this struct
53 | pub folder: Option<String>,
| ^^^^^^
54 | pub workflow: Option<String>,
| ^^^^^^^^
|
= note: `WebhookScope` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
error: field `links` is never read
--> src/api/webhooks.rs:88:9
|
86 | pub struct WebhooksResponse {
| ---------------- field in this struct
87 | pub data: Vec<Webhook>,
88 | pub links: Option<WebhooksLinks>,
| ^^^^^
|
= note: `WebhooksResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: field `next` is never read
--> src/api/webhooks.rs:93:9
|
92 | pub struct WebhooksLinks {
| ------------- field in this struct
93 | pub next: Option<String>,
| ^^^^
|
= note: `WebhooksLinks` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
error: methods `list_webhooks` and `available_events` are never used
--> src/api/webhooks.rs:114:18
|
103 | impl WebhooksClient {
| ------------------- methods in this implementation
...
114 | pub async fn list_webhooks(&self, system: &str, event: &str) -> Result<Vec<Webhook>> {
| ^^^^^^^^^^^^^
...
254 | pub fn available_events(&self) -> &[(&str, &str)] {
| ^^^^^^^^^^^^^^^^
error: name `EMEA` contains a capitalized acronym
--> src/api/oss.rs:57:5
|
57 | EMEA,
| ^^^^ help: consider making the acronym lowercase, except the initial letter: `Emea`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#upper_case_acronyms
= note: `-D clippy::upper-case-acronyms` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::upper_case_acronyms)]`
error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
--> src/commands/generate.rs:240:13
|
240 | output: &PathBuf,
| ^^^^^^^^ help: change this to: `&Path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_arg
= note: `-D clippy::ptr-arg` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::ptr_arg)]`
error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
--> src/commands/generate.rs:318:25
|
318 | fn generate_dxf(output: &PathBuf, index: u32) -> anyhow::Result<u64> {
| ^^^^^^^^ help: change this to: `&Path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_arg
error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
--> src/commands/generate.rs:379:25
|
379 | fn generate_stl(output: &PathBuf, index: u32) -> anyhow::Result<u64> {
| ^^^^^^^^ help: change this to: `&Path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_arg
error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
--> src/commands/generate.rs:410:13
|
410 | output: &PathBuf,
| ^^^^^^^^ help: change this to: `&Path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_arg
error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
--> src/commands/generate.rs:502:13
|
502 | output: &PathBuf,
| ^^^^^^^^ help: change this to: `&Path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_arg
error: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do
--> src/commands/generate.rs:565:13
|
565 | output: &PathBuf,
| ^^^^^^^^ help: change this to: `&Path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#ptr_arg
error: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
--> src/commands/hub.rs:115:9
|
115 | ext_type.split(':').last().unwrap_or("Unknown").to_string()
| ^^^^^^^^^^^^^^^^^^^^------
| |
| help: try: `next_back()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#double_ended_iterator_last
= note: `-D clippy::double-ended-iterator-last` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::double_ended_iterator_last)]`
error: could not compile `raps` (bin "raps") due to 55 previous errors
Error: Process completed with exit code 101.