Skip to content

Avoid path when importing modules#3755

Merged
madsmtm merged 1 commit into
masterfrom
madsmtm/avoid-path
Jun 24, 2024
Merged

Avoid path when importing modules#3755
madsmtm merged 1 commit into
masterfrom
madsmtm/avoid-path

Conversation

@madsmtm
Copy link
Copy Markdown
Member

@madsmtm madsmtm commented Jun 24, 2024

Rust tooling generally works better this way. This includes rust-analyzer, but more noticeably the output from tracing typically prints the module path, which did not correspond to the actual file system before.

Concretely, tracing output from the macOS backend changes from printing winit::platform_impl::platform::util to printing winit::platform_impl::macos::util.

Rust tooling generally works better this way. This includes
rust-analyzer, but more noticeably the output from `tracing` typically
prints the module path, which did not correspond to the actual file
system before.

Concretely, tracing output from the macOS backend changes from printing:
`winit::platform_impl::platform::util`
To printing:
`winit::platform_impl::macos::util`
@madsmtm madsmtm added the S - maintenance Repaying technical debt label Jun 24, 2024
@madsmtm madsmtm requested a review from daxpedda as a code owner June 24, 2024 00:38
Copy link
Copy Markdown
Contributor

@notgull notgull left a comment

Choose a reason for hiding this comment

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

This pull request has been fact checked by true notgull patriots (✔️)

@madsmtm madsmtm merged commit 7d12879 into master Jun 24, 2024
@madsmtm madsmtm deleted the madsmtm/avoid-path branch June 24, 2024 01:57
Copy link
Copy Markdown
Member

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

I very much agree with this change, but I wish there was a lint for using use self::module;.

Can make a PR for my nit myself later.

Comment thread src/platform_impl/web/mod.rs
madsmtm added a commit that referenced this pull request Jun 24, 2024
madsmtm added a commit that referenced this pull request Jun 24, 2024
kchibisov pushed a commit that referenced this pull request Jul 16, 2024
Rust tooling generally works better this way. This includes
rust-analyzer, but more noticeably the output from `tracing` typically
prints the module path, which did not correspond to the actual file
system before.

Concretely, tracing output from the macOS backend changes from printing:
`winit::platform_impl::platform::util`
To printing:
`winit::platform_impl::macos::util`
kchibisov pushed a commit that referenced this pull request Jul 16, 2024
Rust tooling generally works better this way. This includes
rust-analyzer, but more noticeably the output from `tracing` typically
prints the module path, which did not correspond to the actual file
system before.

Concretely, tracing output from the macOS backend changes from printing:
`winit::platform_impl::platform::util`
To printing:
`winit::platform_impl::macos::util`
kchibisov pushed a commit that referenced this pull request Jul 16, 2024
Rust tooling generally works better this way. This includes
rust-analyzer, but more noticeably the output from `tracing` typically
prints the module path, which did not correspond to the actual file
system before.

Concretely, tracing output from the macOS backend changes from printing:
`winit::platform_impl::platform::util`
To printing:
`winit::platform_impl::macos::util`
kchibisov pushed a commit that referenced this pull request Jul 16, 2024
Rust tooling generally works better this way. This includes
rust-analyzer, but more noticeably the output from `tracing` typically
prints the module path, which did not correspond to the actual file
system before.

Concretely, tracing output from the macOS backend changes from printing:
`winit::platform_impl::platform::util`
To printing:
`winit::platform_impl::macos::util`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S - maintenance Repaying technical debt

Development

Successfully merging this pull request may close these issues.

3 participants