Repository navigation
Conversation
4c8b287 to
453b740
Compare
453b740 to
b1a1688
Compare
bab7865 to
29263eb
Compare
29263eb to
83af542
Compare
eadbd32 to
14cb58a
Compare
574da85 to
19ef49b
Compare
|
I noticed that this PR introduces stylistic changes to generic parameters. Could we first agree on which style we prefer before applying these changes? trait MyTrait {}
fn foo(a: impl MyTrait) {
// [...]
}versus trait MyTrait {}
fn foo<T: MyTrait>(a: T) {
// [...]
}Clippy provides a restriction lint, |
I'd say let's use the |
|
@xtqqczze if you prefer, I can use the |
|
I do have a concern that this PR includes a refactoring that converts existing I don't have a strong preference between the two syntaxes, so I'd be interested to hear what other reviewers think. |
ecc235a to
3fe2e24
Compare
|
@xtqqczze I changed back to the |
| } | ||
|
|
||
| pub fn append(&self, name: impl AsRef<Path>, contents: &str) { | ||
| pub fn append<P: AsRef<Path>>(&self, name: P, contents: &str) { |
There was a problem hiding this comment.
I think this change would be better handled separately, or at least in a separate commit.
There was a problem hiding this comment.
I disagree with this one specifically. This PR is meant to uniformize the interface of AtPath, and I consider uniformizing the syntax of the whole interface to be in scope, whether it is with the impl AsRef<Path> or <T: AsRef<Path>> syntax
There was a problem hiding this comment.
If you consider this in scope, the style change should still be made in a separate commit.
3fe2e24 to
69d990d
Compare
Replace uses of `at.plus_as_string()` with `at.plus()` where possible
69d990d to
3fa8757
Compare
Closes #15287