Skip to main content
clean_and_redact
toak_rs
6.0.3
In toak_
rs::
token_
cleaner
toak_rs
::
token_cleaner
Function
clean_
and_
redact
Copy item path
Source
pub fn clean_and_redact(code: &
str
) ->
String
Expand description
Cleans and redacts code in the proper order:
Redact secrets
Remove lines with only redacted content
Clean code (remove comments, imports, etc.)