mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2025-04-11 08:23:16 -07:00
fixup! champion.rs build.rs proof of concept
This commit is contained in:
parent
d9ad34a45a
commit
0cb0e77f50
3 changed files with 3 additions and 3 deletions
riven
|
@ -130,7 +130,7 @@ fn parse_path<'a>(
|
|||
// Split URI into region and rest of path.
|
||||
let req_path = req_path.trim_start_matches('/');
|
||||
let (route, req_path) = req_path.split_at(req_path.find('/')?);
|
||||
let route: Route = route.to_ascii_uppercase().parse().ok()?;
|
||||
let route: Route = route.to_uppercase().parse().ok()?;
|
||||
|
||||
// Find method_id for given path.
|
||||
let method_id = find_matching_method_id(http_method, req_path)?;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", env!("CARGO_PKG_README")))]
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(missing_docs)]
|
||||
#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", env!("CARGO_PKG_README")))]
|
||||
|
||||
// Re-exported crates.
|
||||
#[cfg(feature = "eserde")]
|
||||
|
|
|
@ -98,7 +98,7 @@ pub fn riot_api() -> &'static RiotApi {
|
|||
std::path::PathBuf::from_iter([env!("CARGO_MANIFEST_DIR"), "../apikey.txt"]);
|
||||
std::fs::read_to_string(path).ok()
|
||||
})
|
||||
.expect("Failed to find `RGAPI_KEY` env var or `apikey.txt`.");
|
||||
.expect("Failed to find RGAPI_KEY env var or apikey.txt.");
|
||||
RiotApi::new(RiotApiConfig::with_key(api_key.trim()).preconfig_burst())
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue