The config_namespace!
macro requires datafusion::common::Result
to be in scope
#14518
Labels
bug
Something isn't working
Describe the bug
Just got caught by this. If you don't have
datafusion::common::Result
in scope asResult
when usingconfig_namespace!
, rust-analyzer returns diagnostics forenum takes 2 generic arguments but 1 generic argument was supplied
. I ended up having tocargo expand
the module and paste it into an editor to figure out what it was complaining about.I'm pretty sure I just need to fully specify the
Result
type here:datafusion/datafusion/common/src/config.rs
Line 142 in 304488d
As in, just prefix it with
::datafusion::common::
on that line.To Reproduce
Expected behavior
I would expect
config_namespace!
to work whether or not I have a specific identifier in scope.Additional context
I'm more than happy to post a PR for this as long as someone Ok's the proposed solution (or can point me at a better approach).
The text was updated successfully, but these errors were encountered: