sendgc #103

Closed
andy wants to merge 5 commits from sendgc into master
Collaborator

you can add friends but you cant actually search for them cus i got fed up from fighting the compiler.

you can add friends but you cant actually search for them cus i got fed up from fighting the compiler.
andy added 4 commits 2022-04-30 13:08:33 -04:00
f is for friends who do stuff together
Some checks failed
continuous-integration/drone/push Build is failing
24fdd705c5
a test i guess
Some checks failed
continuous-integration/drone/push Build is failing
f3294dfce8
andy vs clippy round 8
Some checks failed
continuous-integration/drone/push Build is failing
f2c4094b8f
ci pls work
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
5898a8120a
jake requested changes 2022-04-30 13:33:17 -04:00
@ -6,3 +6,3 @@
[dependencies]
libpso = { git = "http://git.sharnoth.com/jake/libpso" }
libpso = { git = "http://git.sharnoth.com/jake/libpso", branch = "sendgc" }
Owner

merge this in libpso

merge this in libpso
@ -12,3 +13,2 @@
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct GuildCardDataId(pub u32);
// TODO: use these
Owner

TODO: remove TODO

TODO: remove TODO
@ -15,0 +14,4 @@
// TODO: use these
#[derive(Debug)]
pub enum GuildcardError {
GuildcardAlreadyFriend(u32),
Owner

should be UserAccountId not u32 (or whatever proper not-number type is expected)

should be `UserAccountId` not `u32` (or whatever proper not-number type is expected)
@ -125,19 +131,28 @@ impl NewGuildCardDataEntity {
}
// TODO: implement this properly
Owner

TODO: determine if this was implemented properly

TODO: determine if this was implemented properly
@ -130,3 +136,2 @@
pub id: GuildCardDataId,
pub user_id: UserAccountId,
pub guildcard: guildcard::GuildCardData,
pub guildcard_data: Box<guildcard::GuildCardData>,
Owner

why is this boxed?

why is this boxed?
Author
Collaborator

GuildCardData is >50kb cus it contains the friendlist + blocklist.

`GuildCardData` is >50kb cus it contains the friendlist + blocklist.
@ -142,1 +146,4 @@
}
pub fn add_friend(&mut self, new_friend: &GuildcardAccept) -> Result<(), GuildcardError> {
let next_open_spot = self.guildcard_data.friends
Owner

.iter().position() might be preferable to .enumerate().find()?

`.iter().position()` might be preferable to `.enumerate().find()`?
andy added 1 commit 2022-04-30 15:35:21 -04:00
andy closed this pull request 2023-02-17 16:50:17 -05:00

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jake/elseware#103
No description provided.