[ENG-1413] Full disk access perms #3386
Triggered via pull request
November 18, 2023 16:31
Status
Success
Total duration
51m 28s
Artifacts
–
Annotations
20 warnings
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference:
core/src/api/search/utils.rs#L109
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> core/src/api/search/utils.rs:109:3
|
109 | self,
| ^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
|
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference:
core/src/api/search/utils.rs#L75
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> core/src/api/search/utils.rs:75:3
|
75 | self,
| ^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
= note: `#[warn(clippy::wrong_self_convention)]` on by default
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L146
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:146:31
|
146 | let filters_as_string = serde_json::to_string(filters).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L117
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:117:34
|
117 | let filters: Vec<Filter> = serde_json::from_str(&filters_string).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L116
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:116:28
|
116 | let filters_string = String::from_utf8(filters_bytes).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L54
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:54:17
|
54 | ... .map(|f| serde_json::to_string(&f).unwrap().into_bytes())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> core/src/lib.rs:1:9
|
1 | #![warn(clippy::unwrap_used, clippy::panic)]
| ^^^^^^^^^^^^^^^^^^^
|
method `into_prisma` is never used:
core/src/api/search/utils.rs#L36
warning: method `into_prisma` is never used
--> core/src/api/search/utils.rs:36:9
|
35 | impl<T> MaybeNot<T> {
| ------------------- method in this implementation
36 | pub fn into_prisma<R: From<prisma_client_rust::Operator<R>>>(self, param: fn(T) -> R) -> R {
| ^^^^^^^^^^^
|
function `mount` is never used:
core/src/api/search/saved.rs#L69
warning: function `mount` is never used
--> core/src/api/search/saved.rs:69:15
|
69 | pub(crate) fn mount() -> AlphaRouter<Ctx> {
| ^^^^^
|
method `exec` is never used:
core/src/api/search/saved.rs#L38
warning: method `exec` is never used
--> core/src/api/search/saved.rs:38:15
|
37 | impl SavedSearchCreateArgs {
| -------------------------- method in this implementation
38 | pub async fn exec(
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
|
this could be a `const fn`:
crates/fda/src/lib.rs#L72
warning: this could be a `const fn`
--> crates/fda/src/lib.rs:72:2
|
72 | / pub fn request_fda() -> Result<()> {
73 | | #[cfg(target_os = "macos")]
74 | | {
75 | | use error::Error;
... |
84 | | Ok(())
85 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
note: the lint level is defined here
--> crates/fda/src/lib.rs:10:2
|
10 | clippy::nursery,
| ^^^^^^^^^^^^^^^
= note: `#[warn(clippy::missing_const_for_fn)]` implied by `#[warn(clippy::nursery)]`
|
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference:
core/src/api/search/utils.rs#L109
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> core/src/api/search/utils.rs:109:3
|
109 | self,
| ^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
|
methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference:
core/src/api/search/utils.rs#L75
warning: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
--> core/src/api/search/utils.rs:75:3
|
75 | self,
| ^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
= note: `#[warn(clippy::wrong_self_convention)]` on by default
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L146
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:146:31
|
146 | let filters_as_string = serde_json::to_string(filters).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L117
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:117:34
|
117 | let filters: Vec<Filter> = serde_json::from_str(&filters_string).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L116
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:116:28
|
116 | let filters_string = String::from_utf8(filters_bytes).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
|
used `unwrap()` on a `Result` value:
core/src/api/search/saved.rs#L54
warning: used `unwrap()` on a `Result` value
--> core/src/api/search/saved.rs:54:17
|
54 | ... .map(|f| serde_json::to_string(&f).unwrap().into_bytes())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
note: the lint level is defined here
--> core/src/lib.rs:1:9
|
1 | #![warn(clippy::unwrap_used, clippy::panic)]
| ^^^^^^^^^^^^^^^^^^^
|
method `into_prisma` is never used:
core/src/api/search/utils.rs#L36
warning: method `into_prisma` is never used
--> core/src/api/search/utils.rs:36:9
|
35 | impl<T> MaybeNot<T> {
| ------------------- method in this implementation
36 | pub fn into_prisma<R: From<prisma_client_rust::Operator<R>>>(self, param: fn(T) -> R) -> R {
| ^^^^^^^^^^^
|
function `mount` is never used:
core/src/api/search/saved.rs#L69
warning: function `mount` is never used
--> core/src/api/search/saved.rs:69:15
|
69 | pub(crate) fn mount() -> AlphaRouter<Ctx> {
| ^^^^^
|
method `exec` is never used:
core/src/api/search/saved.rs#L38
warning: method `exec` is never used
--> core/src/api/search/saved.rs:38:15
|
37 | impl SavedSearchCreateArgs {
| -------------------------- method in this implementation
38 | pub async fn exec(
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
|
iOS
The process '/usr/local/bin/git' failed with exit code 128
|