sos-os / kernel

The Stupid Operating System
Apache License 2.0
264 stars 16 forks source link

Treat raw pointers with more respect #76

Open hawkw opened 7 years ago

hawkw commented 7 years ago

I think there are at least a few cases where we can work on refactoring code that uses raw pointers to be somewhat more idiomatic:

hawkw commented 7 years ago

Another way we could potentially improve safety is by 'downgrading' some *mut pointers to *const pointers. Potentially, there might also be some *const pointers that could be downgraded to &'static references...