Skip to content

Allow PNI in PendingMember #973

Allow PNI in PendingMember

Allow PNI in PendingMember #973

GitHub Actions / clippy failed Oct 12, 2024 in 1s

clippy

6 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 6
Warning 0
Note 0
Help 0

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check failure on line 97 in libsignal-service/src/service_address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `from_pni` found for struct `service_address::ServiceAddress` in the current scope

error[E0599]: no function or associated item named `from_pni` found for struct `service_address::ServiceAddress` in the current scope
  --> libsignal-service/src/service_address.rs:97:33
   |
18 | pub struct ServiceAddress {
   | ------------------------- function or associated item `from_pni` not found for this struct
...
97 |                 ServiceAddress::from_pni(service_id.into())
   |                                 ^^^^^^^^ function or associated item not found in `ServiceAddress`
   |
note: if you're trying to build a new `service_address::ServiceAddress` consider using one of the following associated functions:
      service_address::ServiceAddress::new_aci
      service_address::ServiceAddress::new_pni
  --> libsignal-service/src/service_address.rs:51:5
   |
51 |     pub fn new_aci(uuid: Uuid) -> Self {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
58 |     pub fn new_pni(uuid: Uuid) -> Self {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `from` with a similar name
   |
97 |                 ServiceAddress::from(service_id.into())
   |                                 ~~~~

Check failure on line 94 in libsignal-service/src/service_address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `from_aci` found for struct `service_address::ServiceAddress` in the current scope

error[E0599]: no function or associated item named `from_aci` found for struct `service_address::ServiceAddress` in the current scope
  --> libsignal-service/src/service_address.rs:94:33
   |
18 | pub struct ServiceAddress {
   | ------------------------- function or associated item `from_aci` not found for this struct
...
94 |                 ServiceAddress::from_aci(service_id.into())
   |                                 ^^^^^^^^ function or associated item not found in `ServiceAddress`
   |
note: if you're trying to build a new `service_address::ServiceAddress` consider using one of the following associated functions:
      service_address::ServiceAddress::new_aci
      service_address::ServiceAddress::new_pni
  --> libsignal-service/src/service_address.rs:51:5
   |
51 |     pub fn new_aci(uuid: Uuid) -> Self {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
58 |     pub fn new_pni(uuid: Uuid) -> Self {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `from` with a similar name
   |
94 |                 ServiceAddress::from(service_id.into())
   |                                 ~~~~

Check failure on line 96 in libsignal-service/src/service_address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `ServiceId`

error[E0433]: failed to resolve: use of undeclared type `ServiceId`
  --> libsignal-service/src/service_address.rs:96:13
   |
96 |             ServiceId::Pni(service_id) => {
   |             ^^^^^^^^^ use of undeclared type `ServiceId`
   |
help: a struct with a similar name exists
   |
96 |             DeviceId::Pni(service_id) => {
   |             ~~~~~~~~
help: consider importing one of these enums
   |
1  + use crate::protocol::ServiceId;
   |
1  + use libsignal_protocol::ServiceId;
   |

Check failure on line 93 in libsignal-service/src/service_address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `ServiceId`

error[E0433]: failed to resolve: use of undeclared type `ServiceId`
  --> libsignal-service/src/service_address.rs:93:13
   |
93 |             ServiceId::Aci(service_id) => {
   |             ^^^^^^^^^ use of undeclared type `ServiceId`
   |
help: a struct with a similar name exists
   |
93 |             DeviceId::Aci(service_id) => {
   |             ~~~~~~~~
help: consider importing one of these enums
   |
1  + use crate::protocol::ServiceId;
   |
1  + use libsignal_protocol::ServiceId;
   |

Check failure on line 91 in libsignal-service/src/service_address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `ServiceId` in this scope

error[E0412]: cannot find type `ServiceId` in this scope
   --> libsignal-service/src/service_address.rs:91:25
    |
91  |     fn from(service_id: ServiceId) -> Self {
    |                         ^^^^^^^^^
    |
   ::: /home/runner/.cargo/git/checkouts/libsignal-e5ca3c64ee2f7cbe/e46841e/rust/core/src/address.rs:671:1
    |
671 | pub struct DeviceId(u32);
    | ------------------- similarly named struct `DeviceId` defined here
    |
help: a struct with a similar name exists
    |
91  |     fn from(service_id: DeviceId) -> Self {
    |                         ~~~~~~~~
help: consider importing one of these enums
    |
1   + use crate::protocol::ServiceId;
    |
1   + use libsignal_protocol::ServiceId;
    |

Check failure on line 90 in libsignal-service/src/service_address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `ServiceId` in this scope

error[E0412]: cannot find type `ServiceId` in this scope
   --> libsignal-service/src/service_address.rs:90:11
    |
90  | impl From<ServiceId> for ServiceAddress {
    |           ^^^^^^^^^
    |
   ::: /home/runner/.cargo/git/checkouts/libsignal-e5ca3c64ee2f7cbe/e46841e/rust/core/src/address.rs:671:1
    |
671 | pub struct DeviceId(u32);
    | ------------------- similarly named struct `DeviceId` defined here
    |
help: a struct with a similar name exists
    |
90  | impl From<DeviceId> for ServiceAddress {
    |           ~~~~~~~~
help: consider importing one of these enums
    |
1   + use crate::protocol::ServiceId;
    |
1   + use libsignal_protocol::ServiceId;
    |