Skip to content

Split things into different files, to optimize future work - #85

Merged
Nercury merged 2 commits into
masterfrom
refactor-structure
Mar 4, 2025
Merged

Split things into different files, to optimize future work#85
Nercury merged 2 commits into
masterfrom
refactor-structure

Conversation

@Nercury

@Nercury Nercury commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator

Not much change besides the simple divide and conquer.

@Nercury
Nercury requested a review from MarijnS95 March 4, 2025 14:52
@Nercury

Nercury commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator Author

@dextero I want this to land before #84

@MarijnS95 MarijnS95 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice idea! rustfmt still needs to be ran and I think that should be(come) a requirement in the CI?

EDIT: I didn't really vet the changes at all but trust you moved it completely - CI is happy so the imports / module references should all be good.

Comment thread src/arrays.rs Outdated
Comment thread src/arrays.rs Outdated
@Nercury

Nercury commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator Author

Nice idea! rustfmt still needs to be ran and I think that should be(come) a requirement in the CI?

EDIT: I didn't really vet the changes at all but trust you moved it completely - CI is happy so the imports / module references should all be good.

I have added basic rustfmt config. Other PRs can take care of that if that's important.
I tried to leave the public facing api exactly the same. Later the better names could be found for modules if necessary, but the single file was getting unwieldy.

@Nercury
Nercury merged commit 151aefc into master Mar 4, 2025
@MarijnS95

Copy link
Copy Markdown
Member

I have added basic rustfmt config. Other PRs can take care of that if that's important.

Oh I didn't need a rustfmt.toml config; if anything the edition set now should by default be fetched from Cargo.toml?

I meant running it in CI to reject changes if they don't adhere to the (default!) formatting standard, instead of causing unnecessary reformatting churn later on.

@Nercury

Nercury commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator Author

I have added basic rustfmt config. Other PRs can take care of that if that's important.

Oh I didn't need a rustfmt.toml config; if anything the edition set now should by default be fetched from Cargo.toml?

I meant running it in CI to reject changes if they don't adhere to the (default!) formatting standard, instead of causing unnecessary reformatting churn later on.

It's ok I formatted with rustfmt now :)

@Nercury
Nercury deleted the refactor-structure branch March 4, 2025 15:38
@MarijnS95

Copy link
Copy Markdown
Member

Oh yeah I trust that you formatted it now, just thinking it'd be nice to validate this in CI going forward for future contributions and pushes, as done in #86 :)

TW0hank0 added a commit to TW0hank0/positive_mahjong that referenced this pull request Aug 20, 2026
Update Rust crate android_logger to v0.15.1

This MR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [android_logger](https://github.com/rust-mobile/android_logger-rs) | workspace.dependencies | minor | `=0.14.1` → `=0.15.1` |

---

### Release Notes

<details>
<summary>rust-mobile/android_logger-rs (android_logger)</summary>

### [`v0.15.0`](https://github.com/rust-mobile/android_logger-rs/releases/tag/v0.15.0)

[Compare Source](rust-mobile/android_logger-rs@0.14.1...v0.15.0)

#### What's Changed

- Only provide docs.rs pages for Android targets by [@&#8203;MarijnS95](https://github.com/MarijnS95) in [#&#8203;77](rust-mobile/android_logger-rs#77)
- cargo: Add `os::android-apis` category by [@&#8203;MarijnS95](https://github.com/MarijnS95) in [#&#8203;78](rust-mobile/android_logger-rs#78)
- Prevent truncating log tag name by [@&#8203;dextero](https://github.com/dextero) in [#&#8203;83](rust-mobile/android_logger-rs#83)
- Replace `CStr::from_ptr()` with `CStr::from_bytes_with_nul()` by [@&#8203;MarijnS95](https://github.com/MarijnS95) in [#&#8203;82](rust-mobile/android_logger-rs#82)
- Derive/implement `Debug` for `Config` and `AndroidLogger` by [@&#8203;MarijnS95](https://github.com/MarijnS95) in [#&#8203;81](rust-mobile/android_logger-rs#81)
- Split things into different files, to optimize future work by [@&#8203;Nercury](https://github.com/Nercury) in [#&#8203;85](rust-mobile/android_logger-rs#85)
- ci: Run `cargo fmt --check` to ensure code is always properly formatted by [@&#8203;MarijnS95](https://github.com/MarijnS95) in [#&#8203;86](rust-mobile/android_logger-rs#86)
- Use \_\_android\_log\_is\_loggable in AndroidLogger::enabled by [@&#8203;dextero](https://github.com/dextero) in [#&#8203;84](rust-mobile/android_logger-rs#84)
- Avoid rewriting the preconfigured tag by [@&#8203;dextero](https://github.com/dextero) in [#&#8203;87](rust-mobile/android_logger-rs#87)
- Prepare for release by [@&#8203;Nercury](https://github.com/Nercury) in [#&#8203;88](rust-mobile/android_logger-rs#88)

#### New Contributors

- [@&#8203;MarijnS95](https://github.com/MarijnS95) made their first contribution in [#&#8203;77](rust-mobile/android_logger-rs#77)
- [@&#8203;dextero](https://github.com/dextero) made their first contribution in [#&#8203;83](rust-mobile/android_logger-rs#83)

**Full Changelog**: <rust-mobile/android_logger-rs@0.14.1...v0.15.0>

</details>

---

### Configuration

📅 **Schedule**: (in timezone Asia/Taipei)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zMy4yIiwidXBkYXRlZEluVmVyIjoiNDQuMzMuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->

See merge request TW0hank0/positive_mahjong!143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants