Arduino Modbus No matching Function

I am trying this library modbus Slave and whenever I compile it, it gives this error of :
no matching function for call to 'modbusSlave::setBaud(HardwareSerial*, int, int, int)'.

the code is

#include <ModbusRtu.h>
#include <modbus.h>
#include <modbusDevice.h>
#include <modbusRegBank.h>
#include <modbusSlave.h>


//modbusDevice regBank;
modbusDevice regBank;
//Create the modbus slave protocol handler
modbusSlave slave;

int warnState = 1;
const int pinFour = 4;
const int pinTwo = 2;

#define RS485TxEnablePin 2
#define RS485Baud 9600
#define RS485Format SERIAL_8E1


void setup() {
  // put your setup code here, to run once:
  pinMode(pinFour,INPUT);
  pinMode(LED_BUILTIN,OUTPUT);
  pinMode(pinTwo,OUTPUT); 
  //Assign the modbus device ID
  regBank.setId(2);
  //Add Analog Output registers to the register bank
  regBank.add(40001);  
  regBank.add(40003);

  slave._device = &regBank;   
  slave.setBaud(&Serial,RS485Baud,RS485Format,RS485TxEnablePin);  
  Serial.flush();

}//end of void setup()

void loop() {



  Serial.flush();
  slave.run();

 
}//end if void loop()

so I defined the

#define RS485TxEnablePin 2
#define RS485Baud 9600
#define RS485Format SERIAL_8E1

and

slave.setBaud(&Serial,RS485Baud,RS485Format,RS485TxEnablePin);

when I compiled it, it gives me an error of

error: no matching function for call to 'modbusSlave::setBaud(HardwareSerial*, int, int, int)'
slave.setBaud(&Serial,RS485Baud,RS485Format,RS485TxEnablePin);

I am looking for any documentation regarding setBaud. pls help

I can't find the setBaud() function in the library

  slave.setBaud(&Serial,RS485Baud,RS485Format,RS485TxEnablePin); 

Where did you copy this line of code from ?

ModbusSlaveLib.zip (8.0 KB)

this is the library.