Commit f4b794918c

f4b794918cc563418d3940d847c4139b83cb6b6a

parent: 4a612b75e6

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-07-22 17:42 UTC

commands: Rename the matrix command constructor.

Layout: unified · split

src/commands/matrix.rs +1 −1
@@ -17,7 +17,7 @@ pub struct MatrixCommand {
17} 17}
18 18
19impl MatrixCommand { 19impl MatrixCommand {
20 pub fn new( 20 pub fn create(
21 servers: &Servers, 21 servers: &Servers,
22 config: &ConfigHandle, 22 config: &ConfigHandle,
23 ) -> Result<Command, ()> { 23 ) -> Result<Command, ()> {
src/commands/mod.rs +1 −1
@@ -16,7 +16,7 @@ impl Commands {
16 config: &ConfigHandle, 16 config: &ConfigHandle,
17 ) -> Result<Commands, ()> { 17 ) -> Result<Commands, ()> {
18 Ok(Commands { 18 Ok(Commands {
19 _matrix: MatrixCommand::new(servers, config)?, 19 _matrix: MatrixCommand::create(servers, config)?,
20 }) 20 })
21 } 21 }
22} 22}