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

Method update_after_ac

src/cache/mod.rs:53–60  ·  view source on GitHub ↗
(self, rid: i32)

Source from the content-addressed store, hash-verified

51 }
52
53 pub fn update_after_ac(self, rid: i32) -> Result<(), Error> {
54 let mut c = conn(self.0.conf.storage.cache()?);
55 let target = problems.filter(id.eq(rid));
56 diesel::update(target)
57 .set(status.eq("ac"))
58 .execute(&mut c)?;
59 Ok(())
60 }
61
62 async fn get_user_info(&self) -> Result<(String, bool), Error> {
63 let user = parser::user(self.clone().0.get_user_info().await?.json().await?);

Callers 1

fmtMethod · 0.80

Calls 2

connFunction · 0.85
cacheMethod · 0.80

Tested by

no test coverage detected