Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for mousetailâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #289184 | Initial revision | — | over 1 year ago |
Question | — |
How do I serialize a const generic length array with Serde? I have the following code: ```rs use serde::{Deserialize, Serialize}; #[derive(Sereialize, Deserialize)] struct Container { contents: [String; SIZE] } ``` But I'm getting this error: ``` error[E0277]: the trait bound `[String; SIZE]: Deserialize` is not satisfied --> src\lib.... (more) |
— | over 1 year ago |
Comment | Post #288488 |
The name of a package in PYPI is not always the same as the name you import, so this won't always work even if the package is on pypi. This would also make you vulnerable to malicious actors squatting on these invalid names. (more) |
— | over 1 year ago |
Comment | Post #282582 |
(2 years later) Thanks! I use `(var name of child.attributes)` because it's the name of the attribute. Maybe key would be a better name. (more) |
— | over 1 year ago |
Edit | Post #282333 | Initial revision | — | over 3 years ago |
Question | — |
Is this HTML sanitizer safe? I wrote this HTML sanitizer for use in web scraping. The idea is to safely copy content from a site but apply my own style-sheet and remove any unsafe elements. This whitelist approach seems very different from other sanitizers that I have seen. Is there any disadvantage of doing it this way that I s... (more) |
— | over 3 years ago |