The defendant is not to be subjected to any more restraint than is necessary for his arrest and detention.
R.L.1910, § 5649.