mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Crate] Enforce formatting in CI (#46)
* [CI] Check formatting * Format all files
This commit is contained in:
parent
a6279177bb
commit
b95b2abe0f
76 changed files with 251 additions and 170 deletions
|
|
@ -1,8 +1,62 @@
|
|||
use gamedig::protocols::{gamespy, quake};
|
||||
use gamedig::protocols::minecraft::LegacyGroup;
|
||||
use gamedig::protocols::valve;
|
||||
use gamedig::protocols::valve::Engine;
|
||||
use gamedig::{aliens, aoc, arma2oa, ase, asrd, avorion, bat1944, bb2, bf1942, bm, bo, ccure, cosu, cs, cscz, csgo, css, dod, dods, doi, dst, ffow, gm, hl2dm, hldms, ins, insmic, inss, l4d, l4d2, mc, ohd, onset, pz, ror2, rust, sc, sdtd, ss, tf, tf2, tfc, ts, unturned, ut, vr, GDResult, cw, quake2, quake1, quake3a, hll, sof2};
|
||||
use gamedig::protocols::{gamespy, quake};
|
||||
use gamedig::{
|
||||
aliens,
|
||||
aoc,
|
||||
arma2oa,
|
||||
ase,
|
||||
asrd,
|
||||
avorion,
|
||||
bat1944,
|
||||
bb2,
|
||||
bf1942,
|
||||
bm,
|
||||
bo,
|
||||
ccure,
|
||||
cosu,
|
||||
cs,
|
||||
cscz,
|
||||
csgo,
|
||||
css,
|
||||
cw,
|
||||
dod,
|
||||
dods,
|
||||
doi,
|
||||
dst,
|
||||
ffow,
|
||||
gm,
|
||||
hl2dm,
|
||||
hldms,
|
||||
hll,
|
||||
ins,
|
||||
insmic,
|
||||
inss,
|
||||
l4d,
|
||||
l4d2,
|
||||
mc,
|
||||
ohd,
|
||||
onset,
|
||||
pz,
|
||||
quake1,
|
||||
quake2,
|
||||
quake3a,
|
||||
ror2,
|
||||
rust,
|
||||
sc,
|
||||
sdtd,
|
||||
sof2,
|
||||
ss,
|
||||
tf,
|
||||
tf2,
|
||||
tfc,
|
||||
ts,
|
||||
unturned,
|
||||
ut,
|
||||
vr,
|
||||
GDResult,
|
||||
};
|
||||
use std::env;
|
||||
use std::net::{IpAddr, SocketAddr};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use gamedig::games::tf2;
|
|||
|
||||
fn main() {
|
||||
let response = tf2::query(&"127.0.0.1".parse().unwrap(), None);
|
||||
// or Some(27015), None is the default protocol port (which is 27015)
|
||||
// or Some(27015), None is the default protocol port (which is 27015)
|
||||
|
||||
match response {
|
||||
// Result type, must check what it is...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue