style(clippy): enforce clippy use_self lint
Clippy's `use_self` line ensures that `Self` is used instead of the real name whenever possible. This makes searching easier and cleans up the code a bit.
This commit is contained in:
committed by
Henrik Friedrichsen
parent
01e01b59e4
commit
fe8f8e78ee
@@ -51,9 +51,9 @@ impl CommandManager {
|
||||
library: Arc<Library>,
|
||||
config: Arc<Config>,
|
||||
events: EventManager,
|
||||
) -> CommandManager {
|
||||
) -> Self {
|
||||
let bindings = RefCell::new(Self::get_bindings(&config));
|
||||
CommandManager {
|
||||
Self {
|
||||
aliases: HashMap::new(),
|
||||
bindings,
|
||||
spotify,
|
||||
|
||||
Reference in New Issue
Block a user