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 {
1717}
1818
1919impl MatrixCommand {
20 pub fn new(
20 pub fn create(
2121 servers: &Servers,
2222 config: &ConfigHandle,
2323 ) -> Result<Command, ()> {
src/commands/mod.rs +1 −1
@@ -16,7 +16,7 @@ impl Commands {
1616 config: &ConfigHandle,
1717 ) -> Result<Commands, ()> {
1818 Ok(Commands {
19 _matrix: MatrixCommand::new(servers, config)?,
19 _matrix: MatrixCommand::create(servers, config)?,
2020 })
2121 }
2222}