diff --git a/src/comment.rs b/src/comment.rs index 608254248585..dc4f4516252b 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -403,7 +403,7 @@ enum CodeBlockAttribute { impl CodeBlockAttribute { /// Parse comma separated attributes list. Return rust only if all /// attributes are valid rust attributes - /// See https://doc.rust-lang.org/rustdoc/print.html#attributes + /// See fn new(attributes: &str) -> CodeBlockAttribute { for attribute in attributes.split(",") { match attribute.trim() { diff --git a/tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml b/tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml index df1886c82be3..eaf1d76f999d 100644 --- a/tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml +++ b/tests/cargo-fmt/source/workspaces/path-dep-above/e/Cargo.toml @@ -4,3 +4,5 @@ version = "0.1.0" edition = "2018" [dependencies] c = { path = "../ws/c" } + +[workspace]