Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Failed to expand nested mods #186

@vvforekk

Description

@vvforekk

Version

> cargo equip -V
cargo-equip 0.19.0

Small Example

https://github.com/SaiYS/dbg-cargo-equip
applying cargo-equip on src/bin/main.rs causes error.

error: could not bundle the code
dbg-cargo-equip 0.1.0 (path+file:///Users/roku/room/cloned/dbg-cargo-equip) as crate::__cargo_equip::crates::dbg_cargo_equip
Caused by:
could not expand dbg_cargo_equip from dbg-cargo-equip 0.1.0 (path+file:///Users/roku/room/cloned/dbg-cargo-equip)
Caused by:
one of ["/Users/roku/room/cloned/dbg-cargo-equip/src/bar.rs", "/Users/roku/room/cloned/dbg-cargo-equip/src/bar/mod.rs"] does not exist

Considerations

It seems to trying to expand not crate::foo::bar but crate::bar. Maybe replacing with_file_name() with join() will works well.

.with_file_name(&ident.to_string())

.with_file_name(&ident.to_string())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions