Skip to content

refactor!: remove non-idiomatic From<&String> trait impls#946

Merged
ahl merged 1 commit into
oxidecomputer:mainfrom
danieleades:refactor2
Jan 14, 2026
Merged

refactor!: remove non-idiomatic From<&String> trait impls#946
ahl merged 1 commit into
oxidecomputer:mainfrom
danieleades:refactor2

Conversation

@danieleades

Copy link
Copy Markdown
Contributor

the codegen is outputting both From<&str> and From<&String> implementations. since &String auto-dereferences to &str this is redundant and non-idiomatic.

This is in principle a breaking change, but unlikely to have a significant impact on downstream users due to the auto-deferencing (though it's possible some patterns are doing some funny type inference that could be affected by this change)

Comment thread typify-impl/src/type_entry.rs Outdated
Comment thread typify-impl/src/type_entry.rs Outdated
Comment thread typify-impl/src/type_entry.rs Outdated
@ahl

ahl commented Jan 8, 2026

Copy link
Copy Markdown
Collaborator

Can you check oxide.rs against this as well please?

@danieleades

Copy link
Copy Markdown
Contributor Author

Can you check oxide.rs against this as well please?

oxidecomputer/oxide.rs#1320

@ahl ahl merged commit ffea267 into oxidecomputer:main Jan 14, 2026
4 checks passed
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