Skip to content

fix: borrow semantics - #72

Open
sansmoraxz wants to merge 4 commits into
lun3x:masterfrom
sansmoraxz:chore/doc-borrow-semantics
Open

fix: borrow semantics#72
sansmoraxz wants to merge 4 commits into
lun3x:masterfrom
sansmoraxz:chore/doc-borrow-semantics

Conversation

@sansmoraxz

@sansmoraxz sansmoraxz commented Jul 18, 2026

Copy link
Copy Markdown

There was a misunderstanding from the README. No wait only simple getters were borrow, not get mutators, modifiers or removers.

We don't need to pass owned references into the getter, slice types works ie pass &str instead of &String.

Public API is now uniform for borrowed keys.

Resolves: #71

@sansmoraxz

This comment was marked as outdated.

@sansmoraxz

sansmoraxz commented Jul 20, 2026

Copy link
Copy Markdown
Author

Perhaps it's related to rust version.

Oops my bad, actually some generated methods didn't use the borrow based lookup.

@sansmoraxz sansmoraxz changed the title chore: doc borrow semantics fix: borrow semantics Jul 20, 2026
@sansmoraxz

Copy link
Copy Markdown
Author

cc @lun3x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prefer generating slice type functions where possible

1 participant