MCPcopy Index your code
hub / github.com/clearloop/leetcode-cli / is_session_bad

Method is_session_bad

src/cache/mod.rs:71–74  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

69 }
70
71 async fn is_session_bad(&self) -> bool {
72 // i.e. self.get_user_info().contains_err(Error::CookieError)
73 matches!(self.get_user_info().await, Err(Error::CookieError))
74 }
75
76 async fn resp_to_json<T: DeserializeOwned>(&self, resp: Response) -> Result<T, Error> {
77 let maybe_json: Result<T, _> = resp.json().await;

Callers 2

resp_to_jsonMethod · 0.80
get_questionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected