]>
git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/use_self.rs
///
/// ### Example
/// ```rust
///
/// ### Example
/// ```rust
/// impl Foo {
/// fn new() -> Foo {
/// Foo {}
/// impl Foo {
/// fn new() -> Foo {
/// Foo {}
/// ```
/// could be
/// ```rust
/// ```
/// could be
/// ```rust
/// impl Foo {
/// fn new() -> Self {
/// Self {}
/// impl Foo {
/// fn new() -> Self {
/// Self {}