diff options
| author | Ilya Bobyr <ilya.bobyr@gmail.com> | 2020-06-03 20:36:53 -0700 |
|---|---|---|
| committer | Ilya Bobyr <ilya.bobyr@gmail.com> | 2020-06-07 01:27:06 -0700 |
| commit | 8f4dfa88399320eba07e9717f60a5c32d73299a3 (patch) | |
| tree | edd1613f6fff1759b648b42a23f0d8af00256823 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 450abe80f193ccefbfcd48214d70520f2d507f0e (diff) | |
| download | rust-8f4dfa88399320eba07e9717f60a5c32d73299a3.tar.gz rust-8f4dfa88399320eba07e9717f60a5c32d73299a3.zip | |
Free `default()` forwarding to `Default::default()`
When creating default values a trait method needs to be called with an explicit trait name. `Default::default()` seems redundant. A free function on the other hand, when imported directly, seems to be a better API, as it is just `default()`. When implementing the trait, a method is still required.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
