Skip to content

Commit

Permalink
style(stylua): reformat
Browse files Browse the repository at this point in the history
docs(changelog): update
  • Loading branch information
saying121 committed Feb 11, 2024
1 parent d3d88ad commit 531dc12
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Rustc: Do not need a main function, and make it can use 2024 edition by unstable-options.

## [4.6.0] - 2024-02-07

### Added
Expand Down
28 changes: 12 additions & 16 deletions lua/rustaceanvim/commands/rustc_unpretty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,18 @@ function M.rustc_unpretty(level)
end
text = table.concat(b, '\n')

compat.system(
{
rustc,
'--crate-type',
'lib',
'--edition',
config.tools.rustc.edition,
'-Z',
'unstable-options',
'-Z',
'unpretty=' .. level,
'-',
},
{ stdin = text },
vim.schedule_wrap(handler)
)
compat.system({
rustc,
'--crate-type',
'lib',
'--edition',
config.tools.rustc.edition,
'-Z',
'unstable-options',
'-Z',
'unpretty=' .. level,
'-',
}, { stdin = text }, vim.schedule_wrap(handler))
end

return M

0 comments on commit 531dc12

Please sign in to comment.