scripty-bot / scripty

Found unneeded field pattern RS-C1010
Anti-pattern
Minor
3 months ago5 months old
Following struct field token was matched with a wildcard, consider using .. instead
 35			return Err((StatusCode::UNAUTHORIZED, "Invalid token"));
 36		};
 37
 38		let scripty_config::BotListsConfig::FullConfig { token: _, webhook } = webhook_config 39		else {
 40			warn!("couldn't find valid configuration for top.gg (got single key, need double)");
 41			return Err((StatusCode::UNAUTHORIZED, "Invalid token"));
Following struct field token was matched with a wildcard, consider using .. instead
 36			return Err((StatusCode::UNAUTHORIZED, "Invalid token"));
 37		};
 38
 39		let scripty_config::BotListsConfig::FullConfig { token: _, webhook } = webhook_config 40		else {
 41			warn!(
 42				"couldn't find valid configuration for wumpus.store (got single key, need double)"
Following struct field token was matched with a wildcard, consider using .. instead
 38			return Err((StatusCode::UNAUTHORIZED, "Invalid token"));
 39		};
 40
 41		let scripty_config::BotListsConfig::FullConfig { token: _, webhook } = webhook_config 42		else {
 43			warn!(
 44				"couldn't find valid configuration for discordservices.net (got single key, need \