Skip to content

Rename macro map_len to map_capacity, to match Rust terminology. - #243

Open
jimblandy wants to merge 1 commit into
Smithay:developfrom
jimblandy:rename-map-len-capacity
Open

jimblandy wants to merge 1 commit into
Smithay:developfrom
jimblandy:rename-map-len-capacity

Conversation

@jimblandy

Copy link
Copy Markdown

In drm_ffi::utils, rename the macro map_len to map_capacity, as it returns the capacity of the vector, not its length. The DRM types don't seem to use the term "length" or "len" either, so the old name doesn't match either Rust's or DRM's conventions.

Tested with cargo clippy --all-features --workspace.

In `drm_ffi::utils`, rename the macro `map_len` to `map_capacity`, as
it returns the capacity of the vector, not its length. The DRM types
don't seem to use the term "length" or "len" either, so the old name
doesn't match either Rust's or DRM's conventions.

Tested with `cargo clippy --all-features --workspace`.
@linkmauve

Copy link
Copy Markdown
Contributor

This macro goes away in #240, so I don’t think this PR is useful.

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.

2 participants