Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove get_ prefix from functions #2528

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

jessebraham
Copy link
Member

I've skipped xtensa-lx as I don't think we really have any reason to publish a new version of that currently, but can update it as well if requested. Otherwise, I think I got them all (or most of them, at least 😅). Unfortunately had to touch a ton of files in the process, but oh well.

Closes #2524

@jessebraham jessebraham added the skip-changelog No changelog modification needed label Nov 13, 2024
@jessebraham
Copy link
Member Author

skip-changelog added since some packages received changes which are not user-facing.

@@ -4,7 +4,7 @@ use core::{cell::UnsafeCell, mem::MaybeUninit};

use embassy_executor::{raw, SendSpawner};
use esp_hal::{
get_core,
core,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we drop core() in favour of Cpu::current()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just in this file, or in general?

Copy link
Contributor

Choose a reason for hiding this comment

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

In general I think, I don't know if Rust can cope with a function core and the core crate together. Though I guess if it can, we can leave it and come back later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay will do so in another PR, this one is a bit of a beast and I don't really want to touch it if CI is happy and I don't need to 😅

Copy link
Member

Choose a reason for hiding this comment

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

Let's make get_core private and use Cpu::current() everywhere (though we don't have to do that here if we can get away with it).

@jessebraham jessebraham force-pushed the fixes/remove-get-prefix branch from 188f640 to bb14edc Compare November 13, 2024 14:09
@jessebraham jessebraham changed the title Fixes/remove get prefix Remove 'get_' prefix from functions Nov 13, 2024
@jessebraham jessebraham changed the title Remove 'get_' prefix from functions Remove get_ prefix from functions Nov 13, 2024
Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@SergioGasquez SergioGasquez added this pull request to the merge queue Nov 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Nov 13, 2024
@jessebraham jessebraham force-pushed the fixes/remove-get-prefix branch from bb14edc to 06f7d17 Compare November 13, 2024 15:27
@jessebraham jessebraham added this pull request to the merge queue Nov 13, 2024
Merged via the queue into esp-rs:main with commit 92b9125 Nov 13, 2024
28 checks passed
@jessebraham jessebraham deleted the fixes/remove-get-prefix branch November 13, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove get_ prefixes from all functions
4 participants