eliminadas warnings lol
This commit is contained in:
@@ -10,11 +10,11 @@ fn main() {
|
||||
let mut body = String::new();
|
||||
|
||||
println!("Cual es el titulo de su post: ");
|
||||
stdin().read_line(&mut title);
|
||||
let _ = stdin().read_line(&mut title);
|
||||
let title = title.trim_end();
|
||||
|
||||
println!("Ingrese el cuerpo de {}, aprete {} para terminar de escribir", title, EOF);
|
||||
stdin().read_to_string(&mut body);
|
||||
let _ = stdin().read_to_string(&mut body);
|
||||
|
||||
let post = crear_post(connection, title, &body);
|
||||
println!("Grabado post con id: {}", post.id);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use self::modelos::*;
|
||||
use diesel::{prelude::*, connection};
|
||||
use diesel::prelude::*;
|
||||
use rust_diesel_blogs::*;
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use self::modelos::Post;
|
||||
use rust_diesel_blogs::*;
|
||||
use diesel::{prelude::*, connection};
|
||||
use diesel::prelude::*;
|
||||
use std::env::args;
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user