mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
# What Add an ast-grep rule to use `bail!` rather than `Err(anyhow!(` in a return position. # Why This is slightly more compact, and allows us to port more code over to turbofmt/turbobail. Note: _this PR was previously merged into another branch due to a GH bug_
40 lines
914 B
YAML
40 lines
914 B
YAML
id: resolved-vc-in-trait-arguments
|
|
snapshots:
|
|
? |
|
|
#[turbo_tasks::value_trait]
|
|
pub trait Example {
|
|
fn write_to_disk(self: ResolvedVc<Self>);
|
|
}
|
|
: fixed: |
|
|
#[turbo_tasks::value_trait]
|
|
pub trait Example {
|
|
fn write_to_disk(self: Vc<Self>);
|
|
}
|
|
labels:
|
|
- source: ResolvedVc<Self>
|
|
style: primary
|
|
start: 75
|
|
end: 91
|
|
- source: '#[turbo_tasks::value_trait]'
|
|
style: secondary
|
|
start: 0
|
|
end: 27
|
|
- source: |-
|
|
pub trait Example {
|
|
fn write_to_disk(self: ResolvedVc<Self>);
|
|
}
|
|
style: secondary
|
|
start: 28
|
|
end: 95
|
|
- source: |-
|
|
pub trait Example {
|
|
fn write_to_disk(self: ResolvedVc<Self>);
|
|
}
|
|
style: secondary
|
|
start: 28
|
|
end: 95
|
|
- source: 'fn write_to_disk(self: ResolvedVc<Self>);'
|
|
style: secondary
|
|
start: 52
|
|
end: 93
|