diff options
author | bnewbold <bnewbold@archive.org> | 2022-10-06 01:56:36 +0000 |
---|---|---|
committer | bnewbold <bnewbold@archive.org> | 2022-10-06 01:56:36 +0000 |
commit | e5ee112a13cc331a488d395c4da1f80a9dd61930 (patch) | |
tree | 396a6fd04188385217b6e3c0cae4f91069f1ec38 /rust/src/endpoint_handlers.rs | |
parent | 8bdd5fd92a33cf05424447241033bd529b68af77 (diff) | |
parent | 9faf093b50da190a5efee47f3b00bd425a940c40 (diff) | |
download | fatcat-e5ee112a13cc331a488d395c4da1f80a9dd61930.tar.gz fatcat-e5ee112a13cc331a488d395c4da1f80a9dd61930.zip |
Merge branch 'bnewbold-rust-macaroons-upstream' into 'master'
rust: refactor closer to 'macaroon' crate
See merge request webgroup/fatcat!143
Diffstat (limited to 'rust/src/endpoint_handlers.rs')
-rw-r--r-- | rust/src/endpoint_handlers.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/src/endpoint_handlers.rs b/rust/src/endpoint_handlers.rs index 9a76652b..ed6f6641 100644 --- a/rust/src/endpoint_handlers.rs +++ b/rust/src/endpoint_handlers.rs @@ -171,7 +171,7 @@ impl Server { }; let mut entity = ContainerEntity::db_from_row(conn, rev, Some(ident), hide_flags)?; - entity.db_expand(&conn, expand_flags)?; + entity.db_expand(conn, expand_flags)?; Ok(entity) } @@ -210,7 +210,7 @@ impl Server { }; let mut entity = CreatorEntity::db_from_row(conn, rev, Some(ident), hide_flags)?; - entity.db_expand(&conn, expand_flags)?; + entity.db_expand(conn, expand_flags)?; Ok(entity) } @@ -280,7 +280,7 @@ impl Server { }; let mut entity = FileEntity::db_from_row(conn, rev, Some(ident), hide_flags)?; - entity.db_expand(&conn, expand_flags)?; + entity.db_expand(conn, expand_flags)?; Ok(entity) } @@ -705,7 +705,7 @@ impl Server { }; let mut entity = ReleaseEntity::db_from_row(conn, rev, Some(ident), hide_flags)?; - entity.db_expand(&conn, expand_flags)?; + entity.db_expand(conn, expand_flags)?; Ok(entity) } @@ -906,7 +906,7 @@ impl Server { username.truncate(24); let editor = Editor { editor_id: None, - username: username, + username, is_admin: Some(false), is_bot: Some(false), is_active: Some(true), |