diff --git a/libparsec/crates/client/src/client/list_frozen_users.rs b/libparsec/crates/client/src/client/list_frozen_users.rs index 05963db3203..deb7b4574bb 100644 --- a/libparsec/crates/client/src/client/list_frozen_users.rs +++ b/libparsec/crates/client/src/client/list_frozen_users.rs @@ -31,7 +31,7 @@ pub async fn list_frozen_users( match cmds.send(Req {}).await? { Rep::Ok { frozen_users } => Ok(frozen_users), Rep::AuthorNotAllowed => Err(ClientListFrozenUsersError::AuthorNotAllowed), - bad_rep @ (Rep::UnknownStatus { .. } | Rep::AuthorNotFound) => { + bad_rep @ Rep::UnknownStatus { .. } => { Err(anyhow::anyhow!("Unexpected server response: {:?}", bad_rep).into()) } } diff --git a/libparsec/crates/protocol/schema/authenticated_cmds/list_frozen_users.json5 b/libparsec/crates/protocol/schema/authenticated_cmds/list_frozen_users.json5 index d1d8f501a26..95040984428 100644 --- a/libparsec/crates/protocol/schema/authenticated_cmds/list_frozen_users.json5 +++ b/libparsec/crates/protocol/schema/authenticated_cmds/list_frozen_users.json5 @@ -18,9 +18,6 @@ }, { "status": "author_not_allowed" - }, - { - "status": "author_not_found" } ] } diff --git a/libparsec/crates/protocol/tests/authenticated_cmds/v4/list_frozen_users.rs b/libparsec/crates/protocol/tests/authenticated_cmds/v4/list_frozen_users.rs index 7167d5ee22f..6125c570aa5 100644 --- a/libparsec/crates/protocol/tests/authenticated_cmds/v4/list_frozen_users.rs +++ b/libparsec/crates/protocol/tests/authenticated_cmds/v4/list_frozen_users.rs @@ -24,24 +24,6 @@ pub fn rep_author_not_allowed() { p_assert_eq!(data2, expected); } -pub fn rep_author_not_found() { - // Generated from Parsec 3.1.1-a.0+dev - // Content: - // status: 'author_not_found' - let raw: &[u8] = hex!("81a6737461747573b0617574686f725f6e6f745f666f756e64").as_ref(); - let expected = authenticated_cmds::list_frozen_users::Rep::AuthorNotFound; - let data = authenticated_cmds::list_frozen_users::Rep::load(raw).unwrap(); - - p_assert_eq!(data, expected); - - // Also test serialization round trip - let raw2 = data.dump().unwrap(); - - let data2 = authenticated_cmds::list_frozen_users::Rep::load(&raw2).unwrap(); - - p_assert_eq!(data2, expected); -} - pub fn rep_ok() { // Generated from Parsec 3.1.1-a.0+dev // Content: diff --git a/server/parsec/_parsec_pyi/protocol/authenticated_cmds/v4/list_frozen_users.pyi b/server/parsec/_parsec_pyi/protocol/authenticated_cmds/v4/list_frozen_users.pyi index 79d00f9a5d5..d9ddc25a006 100644 --- a/server/parsec/_parsec_pyi/protocol/authenticated_cmds/v4/list_frozen_users.pyi +++ b/server/parsec/_parsec_pyi/protocol/authenticated_cmds/v4/list_frozen_users.pyi @@ -33,8 +33,3 @@ class RepAuthorNotAllowed(Rep): def __init__( self, ) -> None: ... - -class RepAuthorNotFound(Rep): - def __init__( - self, - ) -> None: ...