Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CleanCut/ultimate_rust2
/ sleep
Method
sleep
exercise/logging/src/lib.rs:28–34 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
26
}
27
}
28
pub fn sleep(&mut self) {
29
if self.sleeping {
30
// 5. Use error!() to log a (non-fatal) error stating that the Frog is already asleep
31
} else {
32
self.sleeping = true;
33
}
34
}
35
}
36
37
impl Default for Frog {
Callers
2
main
Function · 0.80
hop
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected