rustdoc-json: Rename Import.span
to Import.source
* It is called `source` in rustc and the rest of rustdoc * It is not a span, rather it is the source of the import
This commit is contained in:
parent
e190983bd3
commit
b0659f9b1b
3 changed files with 5 additions and 5 deletions
|
@ -461,7 +461,7 @@ pub struct Impl {
|
|||
#[serde(rename_all = "snake_case")]
|
||||
pub struct Import {
|
||||
/// The full path being imported.
|
||||
pub span: String,
|
||||
pub source: String,
|
||||
/// May be different from the last segment of `source` when renaming imports:
|
||||
/// `use source as name;`
|
||||
pub name: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue