Skip to content

Conversation

@oscargus
Copy link
Contributor

@oscargus oscargus commented Jan 3, 2026

Focused on things that resulted in less code.


match quoted_inner() {
Ok(_) => {}
Ok(()) => {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this better? (Not against this change, just curious)

related_information.push(DiagnosticRelatedInformation {
location: Location {
uri: uri.to_owned(),
uri: uri.clone(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the advantage of using clone instead of to_owned?

Copy link
Contributor

@Schottkyc137 Schottkyc137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I like these kinds of changes that leave the repo with more succinct code.

I have left a few comments, but they are mostly for my understanding. Happy to merge this soon. Thanks for the contribution!

@Schottkyc137 Schottkyc137 merged commit 5f66787 into VHDL-LS:master Jan 9, 2026
10 checks passed
@oscargus
Copy link
Contributor Author

oscargus commented Jan 9, 2026

Sorry for not getting back on this. These are all pedantic clippy warnings, so I think that the things you asked about are mainly related to consistency and someone has decided that the suggested form is the preferred one.

@oscargus oscargus deleted the clippyshortening branch January 9, 2026 08:39
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