- Commit
- 64f4f7920e71d9366b2f77632017bfaec597e76e
- Parent
- 07999f705c0d30d58bcbd0e8d47430ef3f19e6ae
- Author
- Pablo <pablo-escobar@riseup.net>
- Date
Added a TODO item
Custum build of stapix for tikz.pablopie.xyz
Added a TODO item
1 file changed, 2 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/main.rs | 3 | 2 | 1 |
diff --git a/src/main.rs b/src/main.rs @@ -82,7 +82,7 @@ fn render_gallery(pic_infos: Vec<PictureInfo>) -> io::Result<()> { // Warn the user if a particular path doesn't have an associated alt string for pic in &pic_infos { if pic.alt.is_empty() { - eprintln!( + println!( "WARNING: Empty text alternative was specified for the file {name:?}", name = pic.file_name ); @@ -217,6 +217,7 @@ fn render_thumbnail(pic: &PictureInfo) -> io::Result<()> { // is older than the source file if let (Ok(thumb_meta), Ok(img_meta)) = (fs::metadata(&thumb_path), fs::metadata(&pic.path)) { if thumb_meta.modified()? > img_meta.modified()? { + // TODO: Report a warning to the user return Ok(()); } }