summaryrefslogtreecommitdiff
path: root/src/codegen/struct_layout.rs
diff options
context:
space:
mode:
authorRyan Lopopolo <rjl@hyperbo.la>2019-09-05 15:41:42 -0700
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-09-17 09:35:52 +0900
commit56f03c182ffe807f5c9a4402ac9b2de4a6091208 (patch)
treef32a697dbaa5998fe2082e31b625926cc07a5ac9 /src/codegen/struct_layout.rs
parentb8b1fe2e41ef54db2e7221587669fd8188ed394c (diff)
Do not use which if which-rustfmt feature is disabled
This commit changes the API of rustfmt_path to return Result<Option<Cow<PathBuf>>>. Ok(None) is returned in the case where which is disabled and no rustfmt command is supplied explicitly either via configuration or env variable. Downstream code checks for the presence of None to directly return the source without emitting an error.
Diffstat (limited to 'src/codegen/struct_layout.rs')
0 files changed, 0 insertions, 0 deletions