-
Couldn't load subscription status.
- Fork 963
Closed
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEO-windowsOperating system: WindowsOperating system: Windows
Description
/Cargo.toml
[workspace]
members = ["member"]/member/Cargo.toml
[package]
name = "member"
version = "0.0.0"/member/src/lib.rs
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4) ;}}(I'm sorry)
Run
member>cargo check
Compiling member v0.0.0 (file:///D:/TEMP/member)
Finished dev [unoptimized + debuginfo] target(s) in 0.18 secs
member>cargo fmt
Failed to find targets
usage: cargo fmt [options]
Options:
-h, --help show this message
-q, --quiet no output printed to stdout
-v, --verbose use verbose output
-p, --package <package>
specify package to format (only usable in workspaces)
--version print rustfmt version and exit
--all format all packages (only usable in workspaces)
This utility formats all bin and lib files of the current crate using rustfmt.
Arguments after `--` are passed to rustfmt.
member>type src\lib.rs
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4) ;}}
member>cargo fmt --all
member>type src\lib.rs
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}>cargo fmt --version
rustfmt 0.6.1-nightly (5dba81bb 2018-05-09)radix and Riateche
Metadata
Metadata
Assignees
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEO-windowsOperating system: WindowsOperating system: Windows