Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Conversation

motemotech
Copy link

No description provided.

let enable = in_place_lookup_builder.lookup.enable;
assert_eq!(annotation, "");
assert_eq!(format!("{:?}",exprs), "[]");
assert_eq!(format!("{:?}", enable), "None");
Copy link
Collaborator

Choose a reason for hiding this comment

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

@motemotech cannot you compare to value None without converting to string?

let exprs = in_place_lookup_builder.lookup.exprs;
let enable = in_place_lookup_builder.lookup.enable;
assert_eq!(annotation, "");
assert_eq!(format!("{:?}",exprs), "[]");
Copy link
Collaborator

Choose a reason for hiding this comment

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

@motemotech I think you can check exprs.len() eq 0, without converting to string

@leolara
Copy link
Collaborator

leolara commented Oct 14, 2023

@motemotech it is approved, a few simple comparisions do not need converting to string.

@qwang98
Copy link
Collaborator

qwang98 commented Oct 27, 2023

@motemotech Feel free to merge it after fixing the CI checks.

@leolara
Copy link
Collaborator

leolara commented Nov 18, 2023

@motemotech are you going to fix the problems?

@leolara leolara force-pushed the main branch 4 times, most recently from 03ddbb5 to 8397503 Compare November 19, 2023 05:49
@leolara leolara closed this Jul 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants