-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: Allow grafts to add data sources #3989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,3 +17,12 @@ macro_rules! ensure { | |
| } | ||
| }; | ||
| } | ||
|
|
||
| // `bail!` from `anyhow`, but calling `from`. | ||
| // For context see https://github.com/dtolnay/anyhow/issues/112#issuecomment-704549251. | ||
| #[macro_export] | ||
| macro_rules! bail { | ||
| ($($err:tt)*) => { | ||
| return Err(anyhow::anyhow!($($err)*).into()); | ||
| }; | ||
| } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why don't we just use the existing
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't call |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand we're using
i32to simplify comparing these values with query results, but it would be nice to postpone the conversion and create a type alias for this tuple.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be but I'll be lazy and leave it for now