Следующий код выдает предупреждение при компиляции:
pub fn add_source_path(request: &mut Request) -> IronResult<Response> {
/// Adds source path to the database.
///
/// This function saves provided absolute path (on the server) to the database
/// and goes over all jpeg files recursively in order to add them to DB.
let params = request.get_ref::<Params>().unwrap();
let path = ¶ms["path"];
Это предупреждение:
warning: doc comment not used by rustdoc
--> src/crawler.rs:64:2
|
64 | /// Adds source path to the database.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_doc_comment)] on by default
Что именно означает это предупреждение и как его исправить?