Use Self everywhere (#3787)
This turns on the clippy lint [`clippy::use_self`](https://rust-lang.github.io/rust-clippy/v0.0.212/index.html#use_self) and fixes it everywhere.
This commit is contained in:
@@ -7,7 +7,7 @@ impl WebLogger {
|
||||
/// Install a new `WebLogger`, piping all [`log`] events to the web console.
|
||||
pub fn init(filter: log::LevelFilter) -> Result<(), log::SetLoggerError> {
|
||||
log::set_max_level(filter);
|
||||
log::set_boxed_logger(Box::new(WebLogger::new(filter)))
|
||||
log::set_boxed_logger(Box::new(Self::new(filter)))
|
||||
}
|
||||
|
||||
/// Create a new [`WebLogger`] with the given filter,
|
||||
|
||||
Reference in New Issue
Block a user