Skip to content

Commit

Permalink
[fix] fix the name output
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Feb 22, 2025
1 parent 86a2fbb commit 7d7a968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@ jobs:
run: rustc --version --verbose
- uses: ./.github/workflows/actions/setup-musl
with:
arch: x86_64
- uses: ./.github/workflows/actions/setup-musl
with:
arch: riscv64
- uses: ./.github/workflows/actions/setup-musl
with:
arch: aarch64
- uses: ./.github/workflows/actions/setup-musl
with:
arch: loongarch64
arch: ${{ matrix.arch }}
- name: Check code format
if: ${{ matrix.arch == 'x86_64' }}
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }}
Expand Down
2 changes: 1 addition & 1 deletion modules/axtask/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl TaskInner {

/// Get a combined string of the task ID and name.
pub fn id_name(&self) -> alloc::string::String {
alloc::format!("Task({}, {:?})", self.id.as_u64(), self.name)
alloc::format!("Task({}, {:?})", self.id.as_u64(), self.name())
}

/// Wait for the task to exit, and return the exit code.
Expand Down

0 comments on commit 7d7a968

Please sign in to comment.