scripty-bot / scripty

Usage of unwrap_or followed by a function call RS-W1031
Performance
Minor
4 months ago4 months old
Use of unwrap_or followed by function call, prefer unwrap_or_else instead
 95		translate: bool,
 96		timeout: Option<Duration>,
 97	) -> Result<String, ModelError> {
 98		let timeout = timeout.unwrap_or(Duration::from_secs(30)); 99		debug!(%self.session_id, %self.peer_address, "getting result from stts");
100		// send the finalize message
101		self.tx